usaid-gov/baseline-study-of-food-for-peace-title-ii-h7kg-yxdw
Icon for Socrata external plugin

Query the Data Delivery Network

Query the DDN

The easiest way to query any data on Splitgraph is via the "Data Delivery Network" (DDN). The DDN is a single endpoint that speaks the PostgreSQL wire protocol. Any Splitgraph user can connect to it at data.splitgraph.com:5432 and query any version of over 40,000 datasets that are hosted or proxied by Splitgraph.

For example, you can query the baseline_study_of_food_for_peace_title_ii table in this repository, by referencing it like:

"usaid-gov/baseline-study-of-food-for-peace-title-ii-h7kg-yxdw:latest"."baseline_study_of_food_for_peace_title_ii"

or in a full query, like:

SELECT
    ":id", -- Socrata column ID
    "g10_6", -- G10 Which of the following activities have you practiced in the past 12 months
    "g03a", -- G03A IS THIS A RESPONSIBLE ADULT BEING INTERVIEWED FOR THE FARMER
    "g13d_5", -- G13D What did you do with the maize you harvested
    "g16_s1_8", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g16_s2_4", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g13a6_5", -- G13A1 Did you use any of these practices for 6 Beans
    "g16_s8_5", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g13a3_5", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g13a5_5", -- G13A1 Did you use any of these practices for 5 Rice
    "g13a9_10", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "g13a16_1", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g16_s6_8", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g15_6", -- G15 6 What animal species fid you raise care for and make decisions about 6 donkeys
    "g13a17_10", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g16_s4_7", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g16_s8_9", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g16_s2_7", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g13a4_10", -- G13A1 Did you use any of these practices for 4 Maize
    "g13a4_5", -- G13A1 Did you use any of these practices for 4 Maize
    "g16_s6_9", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g13a9_2", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "g13a9_3", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "g13a7_1", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "g13a6_8", -- G13A1 Did you use any of these practices for 6 Beans
    "g13a4_9", -- G13A1 Did you use any of these practices for 4 Maize
    "g13a4_7", -- G13A1 Did you use any of these practices for 4 Maize
    "g13a4_3", -- G13A1 Did you use any of these practices for 4 Maize
    "g13a3_4", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g13a3_3", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g13a3_1", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g13a2_5", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g13a2_4", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g13a2_3", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g13a2_1", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g13a1_5", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g13a1_4", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g13a1_2", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g13a1_1", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g13_5", -- G13 What crops did you plant 5 Rice
    "g10_8", -- G10 Which of the following activities have you practiced in the past 12 months
    "g13a18_9", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g13e_4", -- G13E What was the origin of the seeds that you planted during the past 12 months
    "g13a3_7", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g03b", -- G03B RESPONDENTS LINE NUMBER FROM ROSTER
    "g13a12_7", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g16_s5_4", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g10_2", -- G10 Which of the following activities have you practiced in the past 12 months
    "g03", -- G03 FARMERS LINE NUMBER FROM ROSTER
    "g02a", -- G02A FARMERS SEX FROM ROSTER
    "hh", -- HOUSEHOLD NUMBER
    "vn", -- VILLAGE NUMBER
    "g16_s8_7", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g16_s8_4", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g16_s7_6", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g16_s6_3", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g16_s6_1", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g16_s5_6", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g16_s3_8", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g16_s1_3", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g16_s1_2", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g15_5", -- G15 5 What animal species fid you raise care for and make decisions about 5 camels
    "g15_4", -- G15 4 What animal species fid you raise care for and make decisions about 4 pigs
    "g13c_3", -- G13C What did you do with the white sorghum you harvested
    "g13a18_8", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g13a17_8", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g13a14_3", -- G13A1 Did you use any of these practices for 14 Millet
    "g16_s8_1", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g13a11_1", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g15_1", -- G15 1 What animal species fid you raise care for and make decisions about 1 goats
    "g13a14_2", -- G13A1 Did you use any of these practices for 14 Millet
    "g16_s9_5", -- G16 S9 Did you use any of these practices for species 1 9 sheep
    "g13a3_8", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g13a17_7", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g16_s1_9", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g13a13_7", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g13a5_1", -- G13A1 Did you use any of these practices for 5 Rice
    "g13a2_8", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g06", -- G06 CHECK G04 AND G05 IF EITHER ANSWER YES
    "g13b_5", -- G13B What did you do with the red sorghum you harvested
    "g13a6_4", -- G13A1 Did you use any of these practices for 6 Beans
    "g10_7", -- G10 Which of the following activities have you practiced in the past 12 months
    "g13a11_7", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g13a12_9", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g16_s9_2", -- G16 S9 Did you use any of these practices for species 1 9 sheep
    "g16_s9_1", -- G16 S9 Did you use any of these practices for species 1 9 sheep
    "g16_s7_2", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g16_s5_10", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g16_s5_8", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g16_s5_3", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g16_s5_2", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g16_s5_1", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g16_s4_2", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g16_s3_5", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g16_s2_1", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g13e_3", -- G13E What was the origin of the seeds that you planted during the past 12 months
    "g13e_2", -- G13E What was the origin of the seeds that you planted during the past 12 months
    "g13d1", -- G13D1 What proportion of the harvested maize was sold
    "g13d_3", -- G13D What did you do with the maize you harvested
    "g13c1", -- G13C1 What proportion of the harvested white sorghum was sold
    "g13a5_3", -- G13A1 Did you use any of these practices for 5 Rice
    "g13c_4", -- G13C What did you do with the white sorghum you harvested
    "g16_s4_5", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g13a5_8", -- G13A1 Did you use any of these practices for 5 Rice
    "g13a2_9", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g13a8_9", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g16_s2_5", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g13a15_3", -- G13A1 Did you use any of these practices for 15 Cambus
    "g13a8_8", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g13b_3", -- G13B What did you do with the red sorghum you harvested
    "g13a16_10", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g13a16_7", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g13a5_4", -- G13A1 Did you use any of these practices for 5 Rice
    "g13b_4", -- G13B What did you do with the red sorghum you harvested
    "g16_s1_1", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g13a1_3", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g16_s7_10", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g13a2_6", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g13a12_10", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g13a13_10", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g13a8_7", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g15_2", -- G15 2 What animal species fid you raise care for and make decisions about 2 chickens
    "g13a7_5", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "g13a13_3", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g13_3", -- G13 What crops did you plant 3 White sorghum
    "g13_2", -- G13 What crops did you plant 2 Red sorghum
    "g10_3", -- G10 Which of the following activities have you practiced in the past 12 months
    "g13a7_2", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "dis", -- DISTRICT NUMBER
    "g16_s7_1", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g16_s7_7", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g13a7_10", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "g13a7_8", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "g16_s6_5", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g13a4_8", -- G13A1 Did you use any of these practices for 4 Maize
    "g13a2_10", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g16_s4_4", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g13a9_5", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "id",
    "g16_s7_8", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g10_5", -- G10 Which of the following activities have you practiced in the past 12 months
    "g13a11_8", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g13_14", -- G13 What crops did you plant 14 Millet
    "g10_1", -- G10 Which of the following activities have you practiced in the past 12 months
    "g13a10_6", -- G13A1 Did you use any of these practices for 10 OTHER
    "g16_s3_4", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g13a5_2", -- G13A1 Did you use any of these practices for 5 Rice
    "g16_s3_10", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g13a16_9", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g13a14_1", -- G13A1 Did you use any of these practices for 14 Millet
    "g16_s3_2", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g16_s2_2", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g16_s3_7", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g13a10_4", -- G13A1 Did you use any of these practices for 10 OTHER
    "g15_7", -- G15 7 What animal species fid you raise care for and make decisions about 7 OTHER
    "g16_s7_3", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g03c", -- G03C RESPONDENTS SEX FROM ROSTER
    "g13a14_9", -- G13A1 Did you use any of these practices for 14 Millet
    "g13a15_10", -- G13A1 Did you use any of these practices for 15 Cambus
    "g13a18_10", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g10_9", -- G10 Which of the following activities have you practiced in the past 12 months
    "g13a12_5", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g16_s6_4", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g13a16_8", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g13a11_9", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g13c_5", -- G13C What did you do with the white sorghum you harvested
    "g16_s7_5", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g13d_1", -- G13D What did you do with the maize you harvested
    "g13a16_5", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g16_s9_3", -- G16 S9 Did you use any of these practices for species 1 9 sheep
    "g16_s4_10", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g13a1_7", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g13a5_7", -- G13A1 Did you use any of these practices for 5 Rice
    "g09", -- G09 Did you have agricultural insurance in the past 12 months
    "g13a15_8", -- G13A1 Did you use any of these practices for 15 Cambus
    "g13_10", -- G13 What crops did you plant 10 OTHER
    "g13a11_5", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g13a15_2", -- G13A1 Did you use any of these practices for 15 Cambus
    "g13a1_6", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g13d_2", -- G13D What did you do with the maize you harvested
    "g13a13_5", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g15_9", -- G15 9 What animal species fid you raise care for and make decisions about 9 sheep
    "g13a10_10", -- G13A1 Did you use any of these practices for 10 OTHER
    "g07", -- G07 Did you take an agricultural credit in cash or in kind in the past 12 months
    "g16_s1_4", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g13a11_10", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g13a8_10", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g13a15_6", -- G13A1 Did you use any of these practices for 15 Cambus
    "g16_s3_9", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g16_s8_6", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g13a17_9", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g13_7", -- G13 What crops did you plant 7 Cowpeas
    "g13e_1", -- G13E What was the origin of the seeds that you planted during the past 12 months
    "g16_s2_9", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g13_13", -- G13 What crops did you plant 13 Pumpkins
    "g13a18_5", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g13a14_10", -- G13A1 Did you use any of these practices for 14 Millet
    "g16_s9_4", -- G16 S9 Did you use any of these practices for species 1 9 sheep
    "g11", -- G11 REFER TO G04 IS ANSWER YES
    "g13a10_1", -- G13A1 Did you use any of these practices for 10 OTHER
    "g16_s1_5", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g13a10_2", -- G13A1 Did you use any of these practices for 10 OTHER
    "g16_s1_10", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g13a16_4", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g13c_2", -- G13C What did you do with the white sorghum you harvested
    "g16_s4_9", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g16_s8_2", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g13a13_8", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g13a12_8", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g13b2", -- G13B2 To whom did you sell the red sorghum
    "g13a1_9", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g13d_4", -- G13D What did you do with the maize you harvested
    "g13a3_9", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g13a5_10", -- G13A1 Did you use any of these practices for 5 Rice
    "g04", -- G04 Do you have access to a plot of land that you make decisions about
    "g13d2", -- G13D2 To whom did you sell the maize
    "g13a11_4", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g13a8_1", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g13a9_7", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "g13a10_3", -- G13A1 Did you use any of these practices for 10 OTHER
    "g13a7_9", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "g08", -- G08 Did you save any cash in the past 12 months
    "g13a8_3", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g13a10_8", -- G13A1 Did you use any of these practices for 10 OTHER
    "g16_s9_7", -- G16 S9 Did you use any of these practices for species 1 9 sheep
    "g15_3", -- G15 3 What animal species fid you raise care for and make decisions about 3 Cattle cows oxen
    "g16_s6_10", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g16_s5_9", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g13a14_7", -- G13A1 Did you use any of these practices for 14 Millet
    "g13a11_2", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g10_10", -- G10 Which of the following activities have you practiced in the past 12 months
    "g16_s3_3", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g13a8_5", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g13e_5", -- G13E What was the origin of the seeds that you planted during the past 12 months
    "g13a9_4", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "g13b_1", -- G13B What did you do with the red sorghum you harvested
    "g13a10_7", -- G13A1 Did you use any of these practices for 10 OTHER
    "g12", -- G12 Did you plant any crops in plot over which you make decisions in the past 12 months
    "g13a6_6", -- G13A1 Did you use any of these practices for 6 Beans
    "g13a18_1", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g13_6", -- G13 What crops did you plant 6 Beans
    "g16_s4_1", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g10_4", -- G10 Which of the following activities have you practiced in the past 12 months
    "g16_s3_6", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g13_9", -- G13 What crops did you plant 9 Green orams muno beans
    "g14", -- G14 REFER TO G05 IS ANSWER YES
    "g13_12", -- G13 What crops did you plant 12 Sim sim
    "g13_8", -- G13 What crops did you plant 8 Pigeon peas
    "g13a13_2", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g13_16", -- G13 What crops did you plant 16 Sunflower
    "g13a15_1", -- G13A1 Did you use any of these practices for 15 Cambus
    "g13a13_6", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g13a14_5", -- G13A1 Did you use any of these practices for 14 Millet
    "g13a6_3", -- G13A1 Did you use any of these practices for 6 Beans
    "g13a15_4", -- G13A1 Did you use any of these practices for 15 Cambus
    "g13a16_3", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g13a17_2", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g13a4_1", -- G13A1 Did you use any of these practices for 4 Maize
    "g13a4_2", -- G13A1 Did you use any of these practices for 4 Maize
    "g13a4_4", -- G13A1 Did you use any of these practices for 4 Maize
    "g13a5_9", -- G13A1 Did you use any of these practices for 5 Rice
    "g13a7_3", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "g13a1_8", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g13a6_7", -- G13A1 Did you use any of these practices for 6 Beans
    "g16_s8_3", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g16_s6_7", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g13a2_7", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g13a18_7", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g13a12_4", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g13a7_6", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "g13a13_4", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g13a3_2", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g13_4", -- G13 What crops did you plant 4 Maize
    "g16_s2_3", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g13a4_6", -- G13A1 Did you use any of these practices for 4 Maize
    "g13a9_8", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "g16_s2_6", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g13a9_6", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "g16_s8_10", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g13a14_6", -- G13A1 Did you use any of these practices for 14 Millet
    "g16_s5_5", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g05", -- G05 Do you animals and or aquaculture products that you make decisions about
    "g13a9_9", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "g13a15_5", -- G13A1 Did you use any of these practices for 15 Cambus
    "g16_s3_1", -- G16 S3 Did you use any of these practices for species 1 3 Cattle cows oxen
    "g13a6_9", -- G13A1 Did you use any of these practices for 6 Beans
    "g13a18_3", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g13a6_1", -- G13A1 Did you use any of these practices for 6 Beans
    "g13b_2", -- G13B What did you do with the red sorghum you harvested
    "g13a18_6", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g13a7_4", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "g13a18_2", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g13a8_2", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g13a9_1", -- G13A1 Did you use any of these practices for 9 Green orams muno beans
    "g13a14_8", -- G13A1 Did you use any of these practices for 14 Millet
    "g16_s2_8", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g13a17_5", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g13a12_1", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g13a6_2", -- G13A1 Did you use any of these practices for 6 Beans
    "g13a12_2", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g13a12_3", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g13a13_1", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g13a15_7", -- G13A1 Did you use any of these practices for 15 Cambus
    "g13a14_4", -- G13A1 Did you use any of these practices for 14 Millet
    "g13a8_6", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g15_8", -- G15 8 What animal species fid you raise care for and make decisions about 8 rabbits
    "g13a16_2", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g13a2_2", -- G13A1 Did you use any of these practices for 2 Red sorghum
    "g16_s6_6", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g13a1_10", -- G13A1 Did you use any of these practices for 1 Sorghum
    "g16_s9_8", -- G16 S9 Did you use any of these practices for species 1 9 sheep
    "g13a11_6", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g13a16_6", -- G13A1 Did you use any of these practices for 16 Sunflower
    "g13a11_3", -- G13A1 Did you use any of these practices for 11 Watermelon
    "g13a17_1", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g13a3_6", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g13_97", -- G13 What crops did you plant 997 Others
    "g13a7_7", -- G13A1 Did you use any of these practices for 7 Cowpeas
    "g13_11", -- G13 What crops did you plant 11 Watermelon
    "g16_s4_3", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g16_s1_7", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g13_15", -- G13 What crops did you plant 15 Cambus
    "g13a17_3", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g13a6_10", -- G13A1 Did you use any of these practices for 6 Beans
    "g16_s5_7", -- G16 S5 Did you use any of these practices for species 1 5 camels
    "g13_17", -- G13 What crops did you plant 17 Groundnuts
    "g13a5_6", -- G13A1 Did you use any of these practices for 5 Rice
    "g16_s9_6", -- G16 S9 Did you use any of these practices for species 1 9 sheep
    "g13c_1", -- G13C What did you do with the white sorghum you harvested
    "g16_s2_10", -- G16 S2 Did you use any of these practices for species 1 2 chickens
    "g13c2", -- G13C2 To whom did you sell the white sorghum
    "g16_s6_2", -- G16 S6 Did you use any of these practices for species 1 6 donkeys
    "g13a17_4", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g13a17_6", -- G13A1 Did you use any of these practices for 17 Groundnuts
    "g13b1", -- G13B1 What proportion of the harvested red sorghum was sold
    "g13a12_6", -- G13A1 Did you use any of these practices for 12 Sim sim
    "g13a8_4", -- G13A1 Did you use any of these practices for 8 Pigeon peas
    "g16_s4_6", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g13a18_4", -- G13A1 Did you use any of these practices for 18 Peanuts
    "g16_s1_6", -- G16 S1 Did you use any of these practices for species 1 1 goats
    "g16_s8_8", -- G16 S8 Did you use any of these practices for species 1 8 rabbits
    "g13a13_9", -- G13A1 Did you use any of these practices for 13 Pumpkins
    "g13a15_9", -- G13A1 Did you use any of these practices for 15 Cambus
    "g16_s4_8", -- G16 S4 Did you use any of these practices for species 1 4 pigs
    "g16_s7_4", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g13_1", -- G13 What crops did you plant 1 Sorghum
    "g13a10_5", -- G13A1 Did you use any of these practices for 10 OTHER
    "g16_s7_9", -- G16 S7 Did you use any of these practices for species 1 7 OTHER
    "g13_18", -- G13 What crops did you plant 18 Peanuts
    "g13a3_10", -- G13A1 Did you use any of these practices for 3 White sorghum
    "g13a10_9" -- G13A1 Did you use any of these practices for 10 OTHER
FROM
    "usaid-gov/baseline-study-of-food-for-peace-title-ii-h7kg-yxdw:latest"."baseline_study_of_food_for_peace_title_ii"
LIMIT 100;

Connecting to the DDN is easy. All you need is an existing SQL client that can connect to Postgres. As long as you have a SQL client ready, you'll be able to query usaid-gov/baseline-study-of-food-for-peace-title-ii-h7kg-yxdw with SQL in under 60 seconds.

This repository is an "external" repository. That means it's hosted elsewhere, in this case at data.usaid.gov. When you queryusaid-gov/baseline-study-of-food-for-peace-title-ii-h7kg-yxdw:latest on the DDN, we "mount" the repository using the socrata mount handler. The mount handler proxies your SQL query to the upstream data source, translating it from SQL to the relevant language (in this case SoQL).

We also cache query responses on the DDN, but we run the DDN on multiple nodes so a CACHE_HIT is only guaranteed for subsequent queries that land on the same node.

Query Your Local Engine

Install Splitgraph Locally
bash -c "$(curl -sL https://github.com/splitgraph/splitgraph/releases/latest/download/install.sh)"
 

Splitgraph Cloud is built around Splitgraph Core (GitHub), which includes a local Splitgraph Engine packaged as a Docker image. Splitgraph Cloud is basically a scaled-up version of that local Engine. When you query the Data Delivery Network or the REST API, we mount the relevant datasets in an Engine on our servers and execute your query on it.

It's possible to run this engine locally. You'll need a Mac, Windows or Linux system to install sgr, and a Docker installation to run the engine. You don't need to know how to actually use Docker; sgrcan manage the image, container and volume for you.

There are a few ways to ingest data into the local engine.

For external repositories (like this repository), the Splitgraph Engine can "mount" upstream data sources by using sgr mount. This feature is built around Postgres Foreign Data Wrappers (FDW). You can write custom "mount handlers" for any upstream data source. For an example, we blogged about making a custom mount handler for HackerNews stories.

For hosted datasets, where the author has pushed Splitgraph Images to the repository, you can "clone" and/or "checkout" the data using sgr cloneand sgr checkout.

Mounting Data

This repository is an external repository. It's not hosted by Splitgraph. It is hosted by data.usaid.gov, and Splitgraph indexes it. This means it is not an actual Splitgraph image, so you cannot use sgr clone to get the data. Instead, you can use the socrata adapter with the sgr mount command. Then, if you want, you can import the data and turn it into a Splitgraph image that others can clone.

First, install Splitgraph if you haven't already.

Mount the table with sgr mount

sgr mount socrata \
  "usaid-gov/baseline-study-of-food-for-peace-title-ii-h7kg-yxdw" \
  --handler-options '{
    "domain": "data.usaid.gov",
    "tables": {
        "baseline_study_of_food_for_peace_title_ii": "h7kg-yxdw"
    }
}'

That's it! Now you can query the data in the mounted table like any other Postgres table.

Query the data with your existing tools

Once you've loaded the data into your local Splitgraph engine, you can query it with any of your existing tools. As far as they're concerned, usaid-gov/baseline-study-of-food-for-peace-title-ii-h7kg-yxdw is just another Postgres schema.

Related Documentation: