chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_2002\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What segment d is associated with an episode number above 16 and a segment c of laser eye surgery?" }, { "role": "assistant", "content": "SELECT \"segment_d\" FROM \"season_2_2002\" WHERE \"episode\">16 AND \"segment_c\"='laser eye surgery';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_ten_medals\" (\n \"rank\" real,\n \"province\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What team had less than 291 total points whole having 76 bronze and over 21 gold?" }, { "role": "assistant", "content": "SELECT SUM(\"silver\") FROM \"top_ten_medals\" WHERE \"gold\">21 AND \"bronze\"=76 AND \"total\"<291;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_ten_medals\" (\n \"rank\" real,\n \"province\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What was the average rank for team with more than 44 gold, more and 76 bronze and a higher total than 73?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"top_ten_medals\" WHERE \"total\">73 AND \"gold\">44 AND \"bronze\">76;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"time\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: On what date was the team's record 61-66?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='61-66';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"time\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: At what time was the game when they played the White Sox and had a record of 63-70?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"game_log\" WHERE \"opponent\"='white sox' AND \"record\"='63-70';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What shows for gold when bronze is 1?" }, { "role": "assistant", "content": "SELECT \"gold\" FROM \"medals\" WHERE \"bronze\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the gold number when the total is less than 8, silver less than 1 and the rank is more than 7?" }, { "role": "assistant", "content": "SELECT COUNT(\"gold\") FROM \"medals\" WHERE \"total\"<8 AND \"silver\"<1 AND \"rank\">7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average Total for the Rank of 6, when Silver is smaller than 0?" }, { "role": "assistant", "content": "SELECT AVG(\"total\") FROM \"medals\" WHERE \"rank\"=6 AND \"silver\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_summary\" (\n \"nation\" text,\n \"total_wins\" real,\n \"team_wins\" real,\n \"individual_wins\" real,\n \"individual_winners\" real\n);\n\nQuestion: Which Team wins has an Individual winner smaller than 1 and Total win larger than 1?" }, { "role": "assistant", "content": "SELECT SUM(\"team_wins\") FROM \"national_summary\" WHERE \"individual_winners\"<1 AND \"total_wins\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_summary\" (\n \"nation\" text,\n \"total_wins\" real,\n \"team_wins\" real,\n \"individual_wins\" real,\n \"individual_winners\" real\n);\n\nQuestion: Which Team Win is from sweden and has a Individual win smaller than 1" }, { "role": "assistant", "content": "SELECT MAX(\"team_wins\") FROM \"national_summary\" WHERE \"nation\"='sweden' AND \"individual_wins\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"returning_this_year_after_a_break_of_one\" (\n \"programme\" text,\n \"date_s_of_original_removal\" text,\n \"original_channel\" text,\n \"date_s_of_return\" text,\n \"new_channel_s\" text\n);\n\nQuestion: Which channel did Going for Gold air on?" }, { "role": "assistant", "content": "SELECT \"original_channel\" FROM \"returning_this_year_after_a_break_of_one\" WHERE \"programme\"='going for gold';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"returning_this_year_after_a_break_of_one\" (\n \"programme\" text,\n \"date_s_of_original_removal\" text,\n \"original_channel\" text,\n \"date_s_of_return\" text,\n \"new_channel_s\" text\n);\n\nQuestion: What channel is Gladiators on?" }, { "role": "assistant", "content": "SELECT \"new_channel_s\" FROM \"returning_this_year_after_a_break_of_one\" WHERE \"programme\"='gladiators';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"returning_this_year_after_a_break_of_one\" (\n \"programme\" text,\n \"date_s_of_original_removal\" text,\n \"original_channel\" text,\n \"date_s_of_return\" text,\n \"new_channel_s\" text\n);\n\nQuestion: When did Going for Gold return in BBC One?" }, { "role": "assistant", "content": "SELECT \"date_s_of_return\" FROM \"returning_this_year_after_a_break_of_one\" WHERE \"original_channel\"='bbc one' AND \"programme\"='going for gold';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_east\" (\n \"name\" text,\n \"faith\" text,\n \"type\" text,\n \"dcsf_number\" real,\n \"ofsted_number\" real\n);\n\nQuestion: Which faith has a name of Belswains?" }, { "role": "assistant", "content": "SELECT \"faith\" FROM \"south_east\" WHERE \"name\"='belswains';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_east\" (\n \"name\" text,\n \"faith\" text,\n \"type\" text,\n \"dcsf_number\" real,\n \"ofsted_number\" real\n);\n\nQuestion: Which school is a primary school with DCSF number 2045?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"south_east\" WHERE \"type\"='primary' AND \"dcsf_number\"=2045;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jacksonville_jaguars_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which position had fewer rounds than 3, and an overall of less than 48?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"jacksonville_jaguars_draft_history\" WHERE \"round\"<3 AND \"overall\"<48;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jacksonville_jaguars_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which highest pick number's name was Adam Podlesh, when the overall was less than 101?" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"jacksonville_jaguars_draft_history\" WHERE \"name\"='adam podlesh' AND \"overall\"<101;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"city\" text,\n \"team_name\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: What is the IHSAA class in Batesville?" }, { "role": "assistant", "content": "SELECT \"ihsaa_class\" FROM \"indiana_high_school_athletics_conference\" WHERE \"city\"='batesville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"city\" text,\n \"team_name\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"indiana_high_school_athletics_conference\" WHERE \"ihsaa_football_class\"='aaa' AND \"enrollment\"<676 AND \"school\"='lawrenceburg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"city\" text,\n \"team_name\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: What school is in Brookville?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"indiana_high_school_athletics_conference\" WHERE \"city\"='brookville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Score has a Record of 36\u201361?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='36\u201361';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Attendance has a Record of 34\u201351?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"game_log\" WHERE \"record\"='34\u201351';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Loss has a Date of july 2?" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"game_log\" WHERE \"date\"='july 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: Which tournament's 2001 and 2008 were a when 2010 was qf?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"doubles_performance_timeline\" WHERE \"2001\"='a' AND \"2008\"='a' AND \"2010\"='qf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: Which tournament's 2001 and 2006s were a?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"doubles_performance_timeline\" WHERE \"2001\"='a' AND \"2006\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: Which 2007 had a 2009 taht was qf when its 2000 was a?" }, { "role": "assistant", "content": "SELECT \"2007\" FROM \"doubles_performance_timeline\" WHERE \"2009\"='qf' AND \"2000\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: Which 2008 had a 1998 and 2006 that were a when 2009 was sf?" }, { "role": "assistant", "content": "SELECT \"2008\" FROM \"doubles_performance_timeline\" WHERE \"1998\"='a' AND \"2009\"='sf' AND \"2006\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tallest_buildings\" (\n \"rank\" text,\n \"name\" text,\n \"height_m_ft\" text,\n \"floors\" real,\n \"year\" real\n);\n\nQuestion: What is the number of floors for the Citic Square?" }, { "role": "assistant", "content": "SELECT AVG(\"floors\") FROM \"tallest_buildings\" WHERE \"name\"='citic square';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tallest_buildings\" (\n \"rank\" text,\n \"name\" text,\n \"height_m_ft\" text,\n \"floors\" real,\n \"year\" real\n);\n\nQuestion: What is the height for the Shanghai World Plaza?" }, { "role": "assistant", "content": "SELECT \"height_m_ft\" FROM \"tallest_buildings\" WHERE \"name\"='shanghai world plaza';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What week had a lower attendance than 51,423 but was still higher than the other weeks?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"attendance\"<'51,423';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achiral_catalan_solids\" (\n \"picture\" text,\n \"dual_archimedean_solid\" text,\n \"faces\" real,\n \"edges\" real,\n \"vertices\" real,\n \"face_polygon\" text\n);\n\nQuestion: Which Vertices have a Dual Archimedean solid of truncated dodecahedron?" }, { "role": "assistant", "content": "SELECT MAX(\"vertices\") FROM \"achiral_catalan_solids\" WHERE \"dual_archimedean_solid\"='truncated dodecahedron';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achiral_catalan_solids\" (\n \"picture\" text,\n \"dual_archimedean_solid\" text,\n \"faces\" real,\n \"edges\" real,\n \"vertices\" real,\n \"face_polygon\" text\n);\n\nQuestion: Which Edges have a Dual Archimedean solid of truncated icosidodecahedron, and Vertices larger than 62?" }, { "role": "assistant", "content": "SELECT MIN(\"edges\") FROM \"achiral_catalan_solids\" WHERE \"dual_archimedean_solid\"='truncated icosidodecahedron' AND \"vertices\">62;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achiral_catalan_solids\" (\n \"picture\" text,\n \"dual_archimedean_solid\" text,\n \"faces\" real,\n \"edges\" real,\n \"vertices\" real,\n \"face_polygon\" text\n);\n\nQuestion: Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32?" }, { "role": "assistant", "content": "SELECT AVG(\"faces\") FROM \"achiral_catalan_solids\" WHERE \"dual_archimedean_solid\"='truncated icosahedron' AND \"vertices\">32;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_a\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: Which Set 2 has a Set 3 of 20\u201325?" }, { "role": "assistant", "content": "SELECT \"set_2\" FROM \"pool_a\" WHERE \"set_3\"='20\u201325';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_a\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: Which Total has a Set 2 of 20\u201325, and a Score of 1\u20133?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"pool_a\" WHERE \"set_2\"='20\u201325' AND \"score\"='1\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_a\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: Which Set 3 has a Score of 3\u20132, and a Set 2 of 25\u201323, and a Time of 19:00?" }, { "role": "assistant", "content": "SELECT \"set_3\" FROM \"pool_a\" WHERE \"score\"='3\u20132' AND \"set_2\"='25\u201323' AND \"time\"='19:00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_a\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: Which Total has a Score of 1\u20133, and a Set 1 of 29\u201331?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"pool_a\" WHERE \"score\"='1\u20133' AND \"set_1\"='29\u201331';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_a\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: Which Date has a Time of 11:00, and a Set 3 of 25\u201318?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"pool_a\" WHERE \"time\"='11:00' AND \"set_3\"='25\u201318';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_a\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: Which Total has a Set 3 of 13\u201325?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"pool_a\" WHERE \"set_3\"='13\u201325';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"original_london_production\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominee\" text,\n \"result\" text\n);\n\nQuestion: What was the result for the best musical revival category?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"original_london_production\" WHERE \"category\"='best musical revival';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"on_air_id\" text,\n \"purpose\" text\n);\n\nQuestion: Name the area served for on-air ID of abc canberra" }, { "role": "assistant", "content": "SELECT \"area_served\" FROM \"defunct_callsigns\" WHERE \"on_air_id\"='abc canberra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"on_air_id\" text,\n \"purpose\" text\n);\n\nQuestion: Name the frequency with on-air ID of 1way fm" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"defunct_callsigns\" WHERE \"on_air_id\"='1way fm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"on_air_id\" text,\n \"purpose\" text\n);\n\nQuestion: Name the purpose for on-air ID of 2xx" }, { "role": "assistant", "content": "SELECT \"purpose\" FROM \"defunct_callsigns\" WHERE \"on_air_id\"='2xx';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"on_air_id\" text,\n \"purpose\" text\n);\n\nQuestion: Name the frequency for community purpose and callsign of 1vfm" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"defunct_callsigns\" WHERE \"purpose\"='community' AND \"callsign\"='1vfm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"on_air_id\" text,\n \"purpose\" text\n);\n\nQuestion: Name the band with frequency of 102.3" }, { "role": "assistant", "content": "SELECT \"band\" FROM \"defunct_callsigns\" WHERE \"frequency\"='102.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"save\" text\n);\n\nQuestion: What was the loss of the game against with LA New Bears with a save of Mac Suzuki?" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"regular_season\" WHERE \"opponent\"='la new bears' AND \"save\"='mac suzuki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"save\" text\n);\n\nQuestion: What was the date of the game with a save of ||3,073?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"save\"='||3,073';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: Which 2004 has a Tournament of french open?" }, { "role": "assistant", "content": "SELECT \"2004\" FROM \"doubles_performance_timeline\" WHERE \"tournament\"='french open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: Which 2003 has a 2013 of 1r, and a 2007 of 2r?" }, { "role": "assistant", "content": "SELECT \"2003\" FROM \"doubles_performance_timeline\" WHERE \"2013\"='1r' AND \"2007\"='2r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: Which 2007 has a Tournament of grand slam sr?" }, { "role": "assistant", "content": "SELECT \"2007\" FROM \"doubles_performance_timeline\" WHERE \"tournament\"='grand slam sr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: Which 2008 has a Career Win-Loss of 25\u201340?" }, { "role": "assistant", "content": "SELECT \"2008\" FROM \"doubles_performance_timeline\" WHERE \"career_win_loss\"='25\u201340';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: Which Career Win-Loss has a 2001 of 1\u20131?" }, { "role": "assistant", "content": "SELECT \"career_win_loss\" FROM \"doubles_performance_timeline\" WHERE \"2001\"='1\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: Which 2012 has a 2007 of 1r, and a 2008 of 1r, and a 2013 of 2r?" }, { "role": "assistant", "content": "SELECT \"2012\" FROM \"doubles_performance_timeline\" WHERE \"2007\"='1r' AND \"2008\"='1r' AND \"2013\"='2r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What college or club did the round 9 draft pick from Canada come from?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team_league\" FROM \"draft_picks\" WHERE \"round\"=9 AND \"nationality\"='canada';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Who is the player who was from Dynamo-2 moscow (rus) and was picked after round 5?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"round\">5 AND \"college_junior_club_team_league\"='dynamo-2 moscow (rus)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What position does the draft pick from Finland play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"nationality\"='finland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What is the lowest round number that Ian Forbes was picked in the draft?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"draft_picks\" WHERE \"player\"='ian forbes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_championships\" (\n \"year\" text,\n \"conference\" text,\n \"overall_record\" text,\n \"conference_record\" text,\n \"coach\" text\n);\n\nQuestion: Who was the coach in 1953?" }, { "role": "assistant", "content": "SELECT \"coach\" FROM \"conference_championships\" WHERE \"year\"='1953';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"time\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"nfl_recap\" text,\n \"record\" text\n);\n\nQuestion: What is the Time of the game at Arrowhead Stadium with an NFL Recap of recap?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"regular_season\" WHERE \"nfl_recap\"='recap' AND \"game_site\"='arrowhead stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"time\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"nfl_recap\" text,\n \"record\" text\n);\n\nQuestion: What was the Opponent at Arrowhead Stadium?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"game_site\"='arrowhead stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"time\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"nfl_recap\" text,\n \"record\" text\n);\n\nQuestion: What was the Result of the game after Week 4 with a Time of 5:15 p.m. and a Record of 4\u20137?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"regular_season\" WHERE \"week\">4 AND \"time\"='5:15 p.m.' AND \"record\"='4\u20137';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: When in November were they 11-7-3 with over 21 games?" }, { "role": "assistant", "content": "SELECT MAX(\"november\") FROM \"schedule_and_results\" WHERE \"record\"='11-7-3' AND \"game\">21;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the opponent after week 9 with over 49,221 attending, and a Result of w 38-20?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\">9 AND \"attendance\">'49,221' AND \"result\"='w 38-20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_member_schools\" (\n \"school\" text,\n \"team_name\" text,\n \"town\" text,\n \"county\" text,\n \"school_enrollment_2008_10\" real,\n \"football\" text\n);\n\nQuestion: DId the school with an enrollment of 50 have football?" }, { "role": "assistant", "content": "SELECT \"football\" FROM \"list_of_member_schools\" WHERE \"school_enrollment_2008_10\"=50;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_member_schools\" (\n \"school\" text,\n \"team_name\" text,\n \"town\" text,\n \"county\" text,\n \"school_enrollment_2008_10\" real,\n \"football\" text\n);\n\nQuestion: What is the highest number of school enrollment for Union Star High School in De Kalb county?" }, { "role": "assistant", "content": "SELECT MAX(\"school_enrollment_2008_10\") FROM \"list_of_member_schools\" WHERE \"county\"='de kalb' AND \"school\"='union star high school';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_member_schools\" (\n \"school\" text,\n \"team_name\" text,\n \"town\" text,\n \"county\" text,\n \"school_enrollment_2008_10\" real,\n \"football\" text\n);\n\nQuestion: What school had a team name of the Trojans?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"list_of_member_schools\" WHERE \"team_name\"='trojans';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What date was the Site michigan stadium \u2022 ann arbor, mi?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"site\"='michigan stadium \u2022 ann arbor, mi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What is the site of the game with a Result of l7-33?" }, { "role": "assistant", "content": "SELECT \"site\" FROM \"schedule\" WHERE \"result\"='l7-33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What is the name of the Opponent when the Result was w48-0?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"result\"='w48-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Date at memorial stadium \u2022 minneapolis, mn, and an Opponent of northwestern?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"site\"='memorial stadium \u2022 minneapolis, mn' AND \"opponent\"='northwestern';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Result of the game on 10/11/1930?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='10/11/1930';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the total number of games played against the Buffalo Sabres?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"schedule_and_results\" WHERE \"opponent\"='buffalo sabres';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"april\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which April has Points of 95, and a Record of 41\u201325\u201310\u20133, and a Game smaller than 79?" }, { "role": "assistant", "content": "SELECT SUM(\"april\") FROM \"regular_season\" WHERE \"points\"=95 AND \"record\"='41\u201325\u201310\u20133' AND \"game\"<79;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"april\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: How many Points have a Score of 1\u20133, and a Game larger than 82?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"regular_season\" WHERE \"score\"='1\u20133' AND \"game\">82;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"april\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Game is the lowest one that has Points smaller than 92?" }, { "role": "assistant", "content": "SELECT MIN(\"game\") FROM \"regular_season\" WHERE \"points\"<92;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"april\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which April is the smallest one that has a Score of 2\u20134, and a Game smaller than 76?" }, { "role": "assistant", "content": "SELECT MAX(\"april\") FROM \"regular_season\" WHERE \"score\"='2\u20134' AND \"game\"<76;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneio_rio_s_o_paulo\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the high point total associated with a difference of 1 and 0 draws?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"torneio_rio_s_o_paulo\" WHERE \"difference\"='1' AND \"drawn\"=0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneio_rio_s_o_paulo\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What position did the team finish in with a Difference of - 6, 3 losses, and over 4 draws?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"torneio_rio_s_o_paulo\" WHERE \"difference\"='- 6' AND \"lost\"=3 AND \"drawn\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fa_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real,\n \"scorers\" text\n);\n\nQuestion: Which round has the scorer of Di Matteo?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"fa_cup\" WHERE \"scorers\"='di matteo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fa_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real,\n \"scorers\" text\n);\n\nQuestion: What is the lowest attendance of a game that has the result of 2-0?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"fa_cup\" WHERE \"result\"='2-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ordinary_system\" (\n \"unit\" text,\n \"russian\" text,\n \"ratio\" text,\n \"metric_value\" text,\n \"avoirdupois_value\" text\n);\n\nQuestion: What Metric value has a Unit of dolia?" }, { "role": "assistant", "content": "SELECT \"metric_value\" FROM \"ordinary_system\" WHERE \"unit\"='dolia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ordinary_system\" (\n \"unit\" text,\n \"russian\" text,\n \"ratio\" text,\n \"metric_value\" text,\n \"avoirdupois_value\" text\n);\n\nQuestion: What Russian has a Ratio of 40?" }, { "role": "assistant", "content": "SELECT \"russian\" FROM \"ordinary_system\" WHERE \"ratio\"='40';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ordinary_system\" (\n \"unit\" text,\n \"russian\" text,\n \"ratio\" text,\n \"metric_value\" text,\n \"avoirdupois_value\" text\n);\n\nQuestion: What Avoirdupois value has a Russian of \u0431\u0435\u0440\u043a\u043e\u0432\u0435\u0446?" }, { "role": "assistant", "content": "SELECT \"avoirdupois_value\" FROM \"ordinary_system\" WHERE \"russian\"='\u0431\u0435\u0440\u043a\u043e\u0432\u0435\u0446';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ordinary_system\" (\n \"unit\" text,\n \"russian\" text,\n \"ratio\" text,\n \"metric_value\" text,\n \"avoirdupois_value\" text\n);\n\nQuestion: What Russian has an Avoirdupois value of 0.686 gr?" }, { "role": "assistant", "content": "SELECT \"russian\" FROM \"ordinary_system\" WHERE \"avoirdupois_value\"='0.686 gr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ordinary_system\" (\n \"unit\" text,\n \"russian\" text,\n \"ratio\" text,\n \"metric_value\" text,\n \"avoirdupois_value\" text\n);\n\nQuestion: What Unit has a Ratio of 1/32?" }, { "role": "assistant", "content": "SELECT \"unit\" FROM \"ordinary_system\" WHERE \"ratio\"='1/32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ordinary_system\" (\n \"unit\" text,\n \"russian\" text,\n \"ratio\" text,\n \"metric_value\" text,\n \"avoirdupois_value\" text\n);\n\nQuestion: What Ratio has a Unit of zolotnik?" }, { "role": "assistant", "content": "SELECT \"ratio\" FROM \"ordinary_system\" WHERE \"unit\"='zolotnik';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What player from New Mexico plays the WR position?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"2008_nfl_draft\" WHERE \"position\"='wr' AND \"school_club_team\"='new mexico';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_roster\" (\n \"surname\" text,\n \"first\" text,\n \"d_o_b\" text,\n \"uninum\" real,\n \"bats\" text,\n \"throws\" text,\n \"position\" text\n);\n\nQuestion: What's the Uni# of Timms, who has bats of R?" }, { "role": "assistant", "content": "SELECT \"uninum\" FROM \"player_roster\" WHERE \"bats\"='r' AND \"surname\"='timms';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What team were the Opponent in Game 29?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"game\"=29;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relationships_with_women\" (\n \"name\" text,\n \"life\" text,\n \"age_at_death\" text,\n \"first_contact_with_hitler\" text,\n \"relationship\" text\n);\n\nQuestion: When did the woman who died at 31 first contact Hitlers?" }, { "role": "assistant", "content": "SELECT \"first_contact_with_hitler\" FROM \"relationships_with_women\" WHERE \"age_at_death\"='31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relationships_with_women\" (\n \"name\" text,\n \"life\" text,\n \"age_at_death\" text,\n \"first_contact_with_hitler\" text,\n \"relationship\" text\n);\n\nQuestion: What is the relationship of the woman who died at 96?" }, { "role": "assistant", "content": "SELECT \"relationship\" FROM \"relationships_with_women\" WHERE \"age_at_death\"='96';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relationships_with_women\" (\n \"name\" text,\n \"life\" text,\n \"age_at_death\" text,\n \"first_contact_with_hitler\" text,\n \"relationship\" text\n);\n\nQuestion: What is the lifespan of Stefanie Rabatsch?" }, { "role": "assistant", "content": "SELECT \"life\" FROM \"relationships_with_women\" WHERE \"name\"='stefanie rabatsch';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"power_stroke_diesel_200\" (\n \"pos\" real,\n \"car_num\" real,\n \"driver\" text,\n \"make\" text,\n \"team\" text\n);\n\nQuestion: What is Brendan Gaughan's Car #?" }, { "role": "assistant", "content": "SELECT \"car_num\" FROM \"power_stroke_diesel_200\" WHERE \"driver\"='brendan gaughan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"power_stroke_diesel_200\" (\n \"pos\" real,\n \"car_num\" real,\n \"driver\" text,\n \"make\" text,\n \"team\" text\n);\n\nQuestion: What is Mike Skinner's Chevrolet's Car #?" }, { "role": "assistant", "content": "SELECT COUNT(\"car_num\") FROM \"power_stroke_diesel_200\" WHERE \"make\"='chevrolet' AND \"driver\"='mike skinner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"power_stroke_diesel_200\" (\n \"pos\" real,\n \"car_num\" real,\n \"driver\" text,\n \"make\" text,\n \"team\" text\n);\n\nQuestion: What is Driver Brendan Gaughan's Pos?" }, { "role": "assistant", "content": "SELECT \"pos\" FROM \"power_stroke_diesel_200\" WHERE \"driver\"='brendan gaughan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_prix_de_futsal\" (\n \"2005\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2013\" text,\n \"total\" real\n);\n\nQuestion: What was the 2009 value for a total over 1 and 4th on 2010?" }, { "role": "assistant", "content": "SELECT \"2009\" FROM \"grand_prix_de_futsal\" WHERE \"total\">1 AND \"2010\"='4th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the number of laps for the Time/Retired of +16.445?" }, { "role": "assistant", "content": "SELECT \"laps\" FROM \"race\" WHERE \"time_retired\"='+16.445';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the number of laps for the honda vehicle, with a grid of 13?" }, { "role": "assistant", "content": "SELECT \"laps\" FROM \"race\" WHERE \"constructor\"='honda' AND \"grid\"='13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the name of the company that constructed the vehicle for Timo Glock?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"race\" WHERE \"driver\"='timo glock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the Grid for Rubens Barrichello?" }, { "role": "assistant", "content": "SELECT \"grid\" FROM \"race\" WHERE \"driver\"='rubens barrichello';" } ]