instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the film title used for nomination with the original title sedamdeset i dva dana?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_65 WHERE original_title = "sedamdeset i dva dana"
Write a SQL query that answers the following question: Who is the director of Cannibal vegetarian, which is the film title used in nomination?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT director_s_ FROM table_name_92 WHERE film_title_used_in_nomination = "cannibal vegetarian"
Write a SQL query that answers the following question: What is the average First Downs for december 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (first_downs INTEGER, date VARCHAR)
SELECT AVG(first_downs) FROM table_name_82 WHERE date = "december 4"
Write a SQL query that answers the following question: What is the lowest Attendance against the tampa bay buccaneers, with Points Against of less than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (attendance INTEGER, opponent VARCHAR, points_against VARCHAR)
SELECT MIN(attendance) FROM table_name_53 WHERE opponent = "tampa bay buccaneers" AND points_against < 7
Write a SQL query that answers the following question: What is the highest Points when the record was 12–2, and the Points Against are larger than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (points_for INTEGER, record VARCHAR, points_against VARCHAR)
SELECT MAX(points_for) FROM table_name_25 WHERE record = "12–2" AND points_against > 6
Write a SQL query that answers the following question: Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, condition VARCHAR)
SELECT partial_thromboplastin_time FROM table_name_76 WHERE prothrombin_time = "prolonged" AND condition = "factor v deficiency"
Write a SQL query that answers the following question: Which Condition has a Bleeding time of prolonged, a Platelet count of decreased, and Prothrombin time of prolonged?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR, platelet_count VARCHAR)
SELECT condition FROM table_name_1 WHERE bleeding_time = "prolonged" AND platelet_count = "decreased" AND prothrombin_time = "prolonged"
Write a SQL query that answers the following question: Which Platelet count has a Partial thromboplastin time of prolonged or unaffected?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (platelet_count VARCHAR, partial_thromboplastin_time VARCHAR)
SELECT platelet_count FROM table_name_20 WHERE partial_thromboplastin_time = "prolonged or unaffected"
Write a SQL query that answers the following question: Which Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR)
SELECT prothrombin_time FROM table_name_6 WHERE partial_thromboplastin_time = "unaffected" AND condition = "thrombocytopenia"
Write a SQL query that answers the following question: Which Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)
SELECT condition FROM table_name_75 WHERE bleeding_time = "unaffected" AND prothrombin_time = "prolonged"
Write a SQL query that answers the following question: Which Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
SELECT partial_thromboplastin_time FROM table_name_1 WHERE prothrombin_time = "prolonged" AND bleeding_time = "unaffected" AND condition = "vitamin k deficiency or warfarin"
Write a SQL query that answers the following question: What are the notes where the authors are Zhou & Zhang?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (notes VARCHAR, authors VARCHAR)
SELECT notes FROM table_name_11 WHERE authors = "zhou & zhang"
Write a SQL query that answers the following question: What is the status where the notes are possible jr synonym of sapeornis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (status VARCHAR, notes VARCHAR)
SELECT status FROM table_name_60 WHERE notes = "possible jr synonym of sapeornis"
Write a SQL query that answers the following question: What is the average Top-5 finishes with 2 as the Top-10 and a greater than 4 Top-25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR)
SELECT AVG(top_5) FROM table_name_74 WHERE top_10 = 2 AND top_25 > 4
Write a SQL query that answers the following question: What are the least Top-5 finish when the events are greater than 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (top_5 INTEGER, events INTEGER)
SELECT MIN(top_5) FROM table_name_82 WHERE events > 18
Write a SQL query that answers the following question: What is the total of wins when the evens is less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (wins INTEGER, events INTEGER)
SELECT SUM(wins) FROM table_name_66 WHERE events < 3
Write a SQL query that answers the following question: How many cuts made when the Top-10 is larger than 1, and the wins greater than 0, and a Top-5 greater than 2, when the events is greater than 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR, top_10 VARCHAR, wins VARCHAR)
SELECT COUNT(cuts_made) FROM table_name_74 WHERE top_10 > 1 AND wins > 0 AND top_5 > 2 AND events > 18
Write a SQL query that answers the following question: What years did Omar Sneed play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (season VARCHAR, name VARCHAR)
SELECT season FROM table_name_9 WHERE name = "omar sneed"
Write a SQL query that answers the following question: Which season did Jovy Sese play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (season VARCHAR, name VARCHAR)
SELECT season FROM table_name_7 WHERE name = "jovy sese"
Write a SQL query that answers the following question: How did the School/Club Team of Manuel Luis Quezon acquire their Forward?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (acquisition_via VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT acquisition_via FROM table_name_53 WHERE position = "forward" AND school_club_team = "manuel luis quezon"
Write a SQL query that answers the following question: Which School/ Club Team acquired Jondan Salvador via trade?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (school_club_team VARCHAR, acquisition_via VARCHAR, name VARCHAR)
SELECT school_club_team FROM table_name_8 WHERE acquisition_via = "trade" AND name = "jondan salvador"
Write a SQL query that answers the following question: What is the Points with a Played larger than 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (points VARCHAR, played INTEGER)
SELECT COUNT(points) FROM table_name_18 WHERE played > 14
Write a SQL query that answers the following question: What is the Points with an Against smaller than 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (points INTEGER, against INTEGER)
SELECT AVG(points) FROM table_name_51 WHERE against < 16
Write a SQL query that answers the following question: Which Team has a Lost larger than 2, and a Position smaller than 7, and a Drawn smaller than 2, and a Points of 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (team VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR, position VARCHAR)
SELECT team FROM table_name_26 WHERE lost > 2 AND position < 7 AND drawn < 2 AND points = 22
Write a SQL query that answers the following question: Which Points has a Position of 3, and a Drawn smaller than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (points INTEGER, position VARCHAR, drawn VARCHAR)
SELECT MAX(points) FROM table_name_55 WHERE position = 3 AND drawn < 2
Write a SQL query that answers the following question: Which Played has a Points of 2, and a Position smaller than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (played INTEGER, points VARCHAR, position VARCHAR)
SELECT AVG(played) FROM table_name_28 WHERE points = 2 AND position < 8
Write a SQL query that answers the following question: How many average plays have points greater than 14, with an against greater than 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (played INTEGER, points VARCHAR, against VARCHAR)
SELECT AVG(played) FROM table_name_4 WHERE points > 14 AND against > 17
Write a SQL query that answers the following question: Which average against has a lost less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (against INTEGER, lost INTEGER)
SELECT AVG(against) FROM table_name_78 WHERE lost < 1
Write a SQL query that answers the following question: Which of the highest drawn has a played less than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (drawn INTEGER, played INTEGER)
SELECT MAX(drawn) FROM table_name_96 WHERE played < 10
Write a SQL query that answers the following question: How many played have 3 as the drawn, and a position greater than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (played VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT COUNT(played) FROM table_name_25 WHERE drawn = 3 AND position > 4
Write a SQL query that answers the following question: Who sang the song composed by Mariah Carey and Walter Afanasieff?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (performer_s_ VARCHAR, composer_s_ VARCHAR)
SELECT performer_s_ FROM table_name_20 WHERE composer_s_ = "mariah carey and walter afanasieff"
Write a SQL query that answers the following question: How many years was Louis Armstrong performing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (year VARCHAR, performer_s_ VARCHAR)
SELECT COUNT(year) FROM table_name_51 WHERE performer_s_ = "louis armstrong"
Write a SQL query that answers the following question: Who were the Runner(s)-up with the winning score of −16 (66-68-70-68=272)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT runner_s__up FROM table_name_74 WHERE winning_score = −16(66 - 68 - 70 - 68 = 272)
Write a SQL query that answers the following question: What tournament had a winning score of −27 (64-64-61=189)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_3 WHERE winning_score = −27(64 - 64 - 61 = 189)
Write a SQL query that answers the following question: What tournament had a runner(s)-up of Scott Hoch & Kenny Perry?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT tournament FROM table_name_12 WHERE runner_s__up = "scott hoch & kenny perry"
Write a SQL query that answers the following question: What tournament had a Runner(s)-up of Tom Kite?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT tournament FROM table_name_11 WHERE runner_s__up = "tom kite"
Write a SQL query that answers the following question: What is the date of the Outback Steakhouse Pro-Am Tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_94 WHERE tournament = "outback steakhouse pro-am"
Write a SQL query that answers the following question: Which tournament has a Runner(s)-up of Gary McCord?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT tournament FROM table_name_47 WHERE runner_s__up = "gary mccord"
Write a SQL query that answers the following question: What was the location of the game with a score of 2:3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (location VARCHAR, score VARCHAR)
SELECT location FROM table_name_90 WHERE score = "2:3"
Write a SQL query that answers the following question: What was the location of the home game for Slovakia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (location VARCHAR, home_team VARCHAR)
SELECT location FROM table_name_62 WHERE home_team = "slovakia"
Write a SQL query that answers the following question: What was the tournament where Japan was the home team and Mexico was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (tournament VARCHAR, away_team VARCHAR, home_team VARCHAR)
SELECT tournament FROM table_name_21 WHERE away_team = "mexico" AND home_team = "japan"
Write a SQL query that answers the following question: What was the location of the home game for Japan?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (location VARCHAR, home_team VARCHAR)
SELECT location FROM table_name_49 WHERE home_team = "japan"
Write a SQL query that answers the following question: Who was the Runner-up in Hossegor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (runner_up VARCHAR, location VARCHAR)
SELECT runner_up FROM table_name_68 WHERE location = "hossegor"
Write a SQL query that answers the following question: On what Date was the Tournament in Gold Coast?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (date VARCHAR, location VARCHAR)
SELECT date FROM table_name_88 WHERE location = "gold coast"
Write a SQL query that answers the following question: Who was the Winner of the French Polynesia Billabong Pro Event?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (winner VARCHAR, event VARCHAR, country VARCHAR)
SELECT winner FROM table_name_29 WHERE event = "billabong pro" AND country = "french polynesia"
Write a SQL query that answers the following question: What shows for 2010 when 2007 is a and 2004 is 2r?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (Id VARCHAR)
SELECT 2010 FROM table_name_97 WHERE 2007 = "a" AND 2004 = "2r"
Write a SQL query that answers the following question: What is the 2005 when the 2008 shows grand slam tournaments?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (Id VARCHAR)
SELECT 2005 FROM table_name_99 WHERE 2008 = "grand slam tournaments"
Write a SQL query that answers the following question: What shows for 2002 when 2010 shows 69?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (Id VARCHAR)
SELECT 2002 FROM table_name_85 WHERE 2010 = "69"
Write a SQL query that answers the following question: What shows for 2010 when 2005 shows 1r?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 2010 FROM table_name_60 WHERE 2005 = "1r"
Write a SQL query that answers the following question: What is the highest number of draws with more than 15 points, an against of 19, and less than 3 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (drawn INTEGER, lost VARCHAR, points VARCHAR, against VARCHAR)
SELECT MAX(drawn) FROM table_name_27 WHERE points > 15 AND against = 19 AND lost < 3
Write a SQL query that answers the following question: What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (stage__winner_ VARCHAR, general_classification VARCHAR, young_rider_classification VARCHAR)
SELECT stage__winner_ FROM table_name_3 WHERE general_classification = "thor hushovd" AND young_rider_classification = "trent lowe"
Write a SQL query that answers the following question: What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (stage__winner_ VARCHAR, team_classification VARCHAR, young_rider_classification VARCHAR)
SELECT stage__winner_ FROM table_name_69 WHERE team_classification = "quick step" AND young_rider_classification = "trent lowe"
Write a SQL query that answers the following question: What is the 2000-2001 Team with a Jersey # that is 19?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (jersey__number VARCHAR)
SELECT 2000 AS _2001_team FROM table_name_15 WHERE jersey__number = 19
Write a SQL query that answers the following question: What is the average number of ties for years with more than 19 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (tied INTEGER, wins INTEGER)
SELECT AVG(tied) FROM table_name_33 WHERE wins > 19
Write a SQL query that answers the following question: What is the total number of losses for years with fewer than 9 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (losses VARCHAR, wins INTEGER)
SELECT COUNT(losses) FROM table_name_82 WHERE wins < 9
Write a SQL query that answers the following question: What is the total number of Division(s), when Team is Chongqing Lifan, and when Apps is greater than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (division VARCHAR, team VARCHAR, apps VARCHAR)
SELECT COUNT(division) FROM table_name_7 WHERE team = "chongqing lifan" AND apps > 9
Write a SQL query that answers the following question: What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (season VARCHAR, goals VARCHAR, apps VARCHAR, country VARCHAR, team VARCHAR)
SELECT season FROM table_name_6 WHERE country = "china" AND team = "dalian shide" AND apps > 8 AND goals = 2
Write a SQL query that answers the following question: What is the highest Apps, when Goals are greater than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (apps INTEGER, goals INTEGER)
SELECT MAX(apps) FROM table_name_58 WHERE goals > 5
Write a SQL query that answers the following question: What Season, when Country is China, when Team is Dalian Shide, and when Goals are 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (season VARCHAR, goals VARCHAR, country VARCHAR, team VARCHAR)
SELECT season FROM table_name_48 WHERE country = "china" AND team = "dalian shide" AND goals = 0
Write a SQL query that answers the following question: What is the total number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (division VARCHAR, season VARCHAR, country VARCHAR, apps VARCHAR)
SELECT COUNT(division) FROM table_name_32 WHERE country = "china" AND apps > 9 AND season = "2008"
Write a SQL query that answers the following question: What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (division INTEGER, season VARCHAR, apps VARCHAR, goals VARCHAR, team VARCHAR)
SELECT MIN(division) FROM table_name_79 WHERE goals < 10 AND team = "dalian shide" AND apps < 17 AND season = "2007"
Write a SQL query that answers the following question: What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (area INTEGER, population VARCHAR, density VARCHAR, rank VARCHAR)
SELECT MIN(area) FROM table_name_75 WHERE density > 234.77 AND rank = 32 AND population < 965 OFFSET 040
Write a SQL query that answers the following question: What is the Home with a Time that is 14:00?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (home VARCHAR, time VARCHAR)
SELECT home FROM table_name_28 WHERE time = "14:00"
Write a SQL query that answers the following question: What is the Score with an Away that is high park demons?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (score VARCHAR, away VARCHAR)
SELECT score FROM table_name_66 WHERE away = "high park demons"
Write a SQL query that answers the following question: What is the Score with a Hoe that is etobicoke kangaroos?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_60 WHERE home = "etobicoke kangaroos"
Write a SQL query that answers the following question: What is the Date with a Score that is 46-77?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_65 WHERE score = "46-77"
Write a SQL query that answers the following question: Which Pavilion depth has a Crown angle of 34.0–34.7°?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (pavilion_depth VARCHAR, crown_angle VARCHAR)
SELECT pavilion_depth FROM table_name_49 WHERE crown_angle = "34.0–34.7°"
Write a SQL query that answers the following question: Which Brilliance Grade has a Benchmark of practical fine cut?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (brilliance_grade VARCHAR, benchmark VARCHAR)
SELECT brilliance_grade FROM table_name_69 WHERE benchmark = "practical fine cut"
Write a SQL query that answers the following question: Which Table diameter has a Crown height of 14.45%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (table_diameter VARCHAR, crown_height VARCHAR)
SELECT table_diameter FROM table_name_35 WHERE crown_height = "14.45%"
Write a SQL query that answers the following question: Which Brilliance Grade has a Crown angle of 41.1°?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (brilliance_grade VARCHAR, crown_angle VARCHAR)
SELECT brilliance_grade FROM table_name_6 WHERE crown_angle = "41.1°"
Write a SQL query that answers the following question: Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (pavilion_depth VARCHAR, brilliance_grade VARCHAR, pavilion_angle VARCHAR)
SELECT pavilion_depth FROM table_name_36 WHERE brilliance_grade = "100%" AND pavilion_angle = "n/a"
Write a SQL query that answers the following question: What is the number of lost with 2 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (lost VARCHAR, points VARCHAR)
SELECT COUNT(lost) FROM table_name_70 WHERE points = 2
Write a SQL query that answers the following question: What was the aggregate for the match with a team 2 of Kenya?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (agg VARCHAR, team_2 VARCHAR)
SELECT agg FROM table_name_60 WHERE team_2 = "kenya"
Write a SQL query that answers the following question: What was the aggregate for the match with Sierra Leone as team 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (agg VARCHAR, team_1 VARCHAR)
SELECT agg FROM table_name_28 WHERE team_1 = "sierra leone"
Write a SQL query that answers the following question: What was the 1st leg score for the match with Lesotho as team 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_14 WHERE team_1 = "lesotho"
Write a SQL query that answers the following question: What was the 2nd leg score for the match with Lesotho as team 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (team_1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_82 WHERE team_1 = "lesotho"
Write a SQL query that answers the following question: What is the total number of ladies ranked who had less than 3 silvers, less than 2 total medals, and more than 0 bronze medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT COUNT(rank) FROM table_name_9 WHERE silver < 3 AND total < 2 AND bronze > 0
Write a SQL query that answers the following question: What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT COUNT(gold) FROM table_name_17 WHERE bronze < 3 AND rank < 11 AND silver > 0
Write a SQL query that answers the following question: What was Matthew Warchus' Award?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (award VARCHAR, nominee VARCHAR)
SELECT award FROM table_name_29 WHERE nominee = "matthew warchus"
Write a SQL query that answers the following question: What is the Format of the French Frequency with a Call sign of CKRL-FM?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (format VARCHAR, notes VARCHAR, call_sign VARCHAR)
SELECT format FROM table_name_56 WHERE notes = "french" AND call_sign = "ckrl-fm"
Write a SQL query that answers the following question: What is the Format of the Frequency owned by Laval University?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (format VARCHAR, owner VARCHAR)
SELECT format FROM table_name_96 WHERE owner = "laval university"
Write a SQL query that answers the following question: What is the Notes of the Frequency with Format of talk radio?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (notes VARCHAR, format VARCHAR)
SELECT notes FROM table_name_63 WHERE format = "talk radio"
Write a SQL query that answers the following question: What is the Notes of the Frequency with a Format of soft adult contemporary?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (notes VARCHAR, format VARCHAR)
SELECT notes FROM table_name_46 WHERE format = "soft adult contemporary"
Write a SQL query that answers the following question: How many chart runs had a debut position of more than 7 when peak position was 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (chart VARCHAR, debut_position VARCHAR, peak_position VARCHAR)
SELECT COUNT(chart) AS run FROM table_name_18 WHERE debut_position > 7 AND peak_position = 11
Write a SQL query that answers the following question: Which Spoofed title had Mort Drucker as the artist in issue 88?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (spoofed_title VARCHAR, artist VARCHAR, issue VARCHAR)
SELECT spoofed_title FROM table_name_97 WHERE artist = "mort drucker" AND issue = 88
Write a SQL query that answers the following question: Who was the artist for Spoofed title Genteel Ben in an issue later than 74?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (artist VARCHAR, issue VARCHAR, spoofed_title VARCHAR)
SELECT artist FROM table_name_42 WHERE issue > 74 AND spoofed_title = "genteel ben"
Write a SQL query that answers the following question: Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (issue INTEGER, artist VARCHAR, spoofed_title VARCHAR)
SELECT SUM(issue) FROM table_name_44 WHERE artist = "mort drucker" AND spoofed_title = "route 67"
Write a SQL query that answers the following question: What is the earliest issue Arnie Kogen wrote for in December 1964?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (issue INTEGER, writer VARCHAR, date VARCHAR)
SELECT MIN(issue) FROM table_name_12 WHERE writer = "arnie kogen" AND date = "december 1964"
Write a SQL query that answers the following question: What are the highest points that have a difference of 8, with a position less than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (points INTEGER, difference VARCHAR, position VARCHAR)
SELECT MAX(points) FROM table_name_36 WHERE difference = "8" AND position < 4
Write a SQL query that answers the following question: How many losses have corinthians as the team, with an against greater than 26?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (lost INTEGER, team VARCHAR, against VARCHAR)
SELECT SUM(lost) FROM table_name_32 WHERE team = "corinthians" AND against > 26
Write a SQL query that answers the following question: How many points have a difference of 23, with a drawn less than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (points VARCHAR, difference VARCHAR, drawn VARCHAR)
SELECT COUNT(points) FROM table_name_62 WHERE difference = "23" AND drawn < 5
Write a SQL query that answers the following question: How many positions have 15 for the points, with a drawn less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (position INTEGER, points VARCHAR, drawn VARCHAR)
SELECT SUM(position) FROM table_name_57 WHERE points = 15 AND drawn < 3
Write a SQL query that answers the following question: What was the result of the match held when his record was 7-0-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (result VARCHAR, record VARCHAR)
SELECT result FROM table_name_31 WHERE record = "7-0-0"
Write a SQL query that answers the following question: What do the notes say for 1989 May 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (notes VARCHAR, date VARCHAR)
SELECT notes FROM table_name_32 WHERE date = "1989 may 7"
Write a SQL query that answers the following question: How did he beat Alberto Rodriguez?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_55 WHERE opponent = "alberto rodriguez"
Write a SQL query that answers the following question: What was his record in 1987?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_79 WHERE date = "1987"
Write a SQL query that answers the following question: What is the lowest total that has barbados as the nation with a bronze greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_96 WHERE nation = "barbados" AND bronze > 0
Write a SQL query that answers the following question: How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (silver VARCHAR, total VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT COUNT(silver) FROM table_name_43 WHERE gold > 2 AND bronze < 35 AND nation = "china" AND total > 26
Write a SQL query that answers the following question: What is the largest total that has a gold less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (total INTEGER, gold INTEGER)
SELECT MAX(total) FROM table_name_57 WHERE gold < 0
Write a SQL query that answers the following question: How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT COUNT(gold) FROM table_name_32 WHERE silver > 1 AND nation = "vietnam" AND bronze < 3