instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the stuffit that has bzip and LHA/LZH of no? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (stuffit VARCHAR, bzip2 VARCHAR, lha_lzh VARCHAR) | SELECT stuffit FROM table_name_99 WHERE bzip2 = "no" AND lha_lzh = "no" |
Write a SQL query that answers the following question: Which round was Robert Deciantis taken in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (round VARCHAR, player VARCHAR) | SELECT round FROM table_name_43 WHERE player = "robert deciantis" |
Write a SQL query that answers the following question: Which round was Brian Elder taken in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (round INTEGER, player VARCHAR) | SELECT MIN(round) FROM table_name_15 WHERE player = "brian elder" |
Write a SQL query that answers the following question: what is the date of the tournament in michalovce | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_74 WHERE tournament = "michalovce" |
Write a SQL query that answers the following question: What was the winning score of the Valero Texas Open? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (winning_score VARCHAR, tournament VARCHAR) | SELECT winning_score FROM table_name_99 WHERE tournament = "valero texas open" |
Write a SQL query that answers the following question: When was the winning score –12 (69-66-72-65=272)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (date VARCHAR, winning_score VARCHAR) | SELECT date FROM table_name_72 WHERE winning_score = –12(69 - 66 - 72 - 65 = 272) |
Write a SQL query that answers the following question: Who was the runner-up when the winning score was –28 (66-67-68-64-67=332)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (runner_s__up VARCHAR, winning_score VARCHAR) | SELECT runner_s__up FROM table_name_81 WHERE winning_score = –28(66 - 67 - 68 - 64 - 67 = 332) |
Write a SQL query that answers the following question: Which party had a Retired Democratic hold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (party VARCHAR, result VARCHAR) | SELECT party FROM table_name_97 WHERE result = "retired democratic hold" |
Write a SQL query that answers the following question: What's the average year Charles N. Felton was re-elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR) | SELECT AVG(first_elected) FROM table_name_92 WHERE result = "re-elected" AND incumbent = "charles n. felton" |
Write a SQL query that answers the following question: What year was Barclay Henley first elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (first_elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(first_elected) FROM table_name_77 WHERE incumbent = "barclay henley" |
Write a SQL query that answers the following question: what is the sponsor of motorola | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (team VARCHAR, sponsor VARCHAR) | SELECT team FROM table_name_12 WHERE sponsor = "motorola" |
Write a SQL query that answers the following question: Which Opponent has the Event of Sengoku 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (opponent VARCHAR, event VARCHAR) | SELECT opponent FROM table_name_94 WHERE event = "sengoku 1" |
Write a SQL query that answers the following question: What Record has an Event of Pride Shockwave 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (record VARCHAR, event VARCHAR) | SELECT record FROM table_name_22 WHERE event = "pride shockwave 2004" |
Write a SQL query that answers the following question: What's the average pole position for the driver that has a percentage of 44.81%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (pole_positions INTEGER, percentage VARCHAR) | SELECT AVG(pole_positions) FROM table_name_33 WHERE percentage = "44.81%" |
Write a SQL query that answers the following question: What's the average front row starts for drivers with less than 68 pole positions and entries lower than 52? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (front_row_starts INTEGER, pole_positions VARCHAR, entries VARCHAR) | SELECT AVG(front_row_starts) FROM table_name_85 WHERE pole_positions < 68 AND entries < 52 |
Write a SQL query that answers the following question: Attendance of 60,671 had what average week? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (week INTEGER, attendance VARCHAR) | SELECT AVG(week) FROM table_name_9 WHERE attendance = 60 OFFSET 671 |
Write a SQL query that answers the following question: Week of 7 had what average attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (attendance INTEGER, week VARCHAR) | SELECT AVG(attendance) FROM table_name_57 WHERE week = 7 |
Write a SQL query that answers the following question: How many legs were lost for Trina Gulliver with more than 3 played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (legs_lost VARCHAR, player VARCHAR, played VARCHAR) | SELECT COUNT(legs_lost) FROM table_name_11 WHERE player = "trina gulliver" AND played > 3 |
Write a SQL query that answers the following question: What is the most sets won with less than 1 legs won? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (sets_won INTEGER, legs_won INTEGER) | SELECT MAX(sets_won) FROM table_name_25 WHERE legs_won < 1 |
Write a SQL query that answers the following question: Yards of 45, and a Date of november 8, 1971 is what kicker? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (kicker VARCHAR, yards VARCHAR, date VARCHAR) | SELECT kicker FROM table_name_92 WHERE yards = 45 AND date = "november 8, 1971" |
Write a SQL query that answers the following question: Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (yards INTEGER, game_time VARCHAR, date VARCHAR) | SELECT AVG(yards) FROM table_name_2 WHERE game_time = "2nd quarter (0:00)" AND date = "november 8, 1971" |
Write a SQL query that answers the following question: Opponent of new york giants, and a Yards smaller than 68 is what kicker? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (kicker VARCHAR, opponent VARCHAR, yards VARCHAR) | SELECT kicker FROM table_name_36 WHERE opponent = "new york giants" AND yards < 68 |
Write a SQL query that answers the following question: Yards larger than 52, and a Opponent of san francisco 49ers is what kicker? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (kicker VARCHAR, yards VARCHAR, opponent VARCHAR) | SELECT kicker FROM table_name_5 WHERE yards > 52 AND opponent = "san francisco 49ers" |
Write a SQL query that answers the following question: Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, kicker VARCHAR, result VARCHAR, game_time VARCHAR) | SELECT date FROM table_name_3 WHERE result = "missed*" AND game_time = "2nd quarter (0:00)" AND kicker = "mason crosby" |
Write a SQL query that answers the following question: Opponent of houston texans had what result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_2 WHERE opponent = "houston texans" |
Write a SQL query that answers the following question: Which Nationality of the person has a Position on left wing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (nationality VARCHAR, position VARCHAR) | SELECT nationality FROM table_name_30 WHERE position = "left wing" |
Write a SQL query that answers the following question: Which College/Junior/Club Team (League) are from sweden? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR) | SELECT college_junior_club_team__league_ FROM table_name_92 WHERE nationality = "sweden" |
Write a SQL query that answers the following question: WHich Position is from russia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (position VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_39 WHERE nationality = "russia" |
Write a SQL query that answers the following question: Which venue is with Ukraine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (venue VARCHAR, nationality VARCHAR) | SELECT venue FROM table_name_12 WHERE nationality = "ukraine" |
Write a SQL query that answers the following question: Which venue had a nationality of Belgium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (venue VARCHAR, nationality VARCHAR) | SELECT venue FROM table_name_44 WHERE nationality = "belgium" |
Write a SQL query that answers the following question: Which Best Actor has a Best Film of mystery? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (best_actor VARCHAR, best_film VARCHAR) | SELECT best_actor FROM table_name_93 WHERE best_film = "mystery" |
Write a SQL query that answers the following question: Which Year has a Best Film of mystery? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (year VARCHAR, best_film VARCHAR) | SELECT year FROM table_name_80 WHERE best_film = "mystery" |
Write a SQL query that answers the following question: Which Best Actress has a Year of 2012 6th? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (best_actress VARCHAR, year VARCHAR) | SELECT best_actress FROM table_name_12 WHERE year = "2012 6th" |
Write a SQL query that answers the following question: Which Best Actor has a Best Director of takeshi kitano for outrage beyond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (best_actor VARCHAR, best_director VARCHAR) | SELECT best_actor FROM table_name_44 WHERE best_director = "takeshi kitano for outrage beyond" |
Write a SQL query that answers the following question: Which Best Film has a Best Supporting Actress of shamaine buencamino for niño? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (best_film VARCHAR, best_supporting_actress VARCHAR) | SELECT best_film FROM table_name_42 WHERE best_supporting_actress = "shamaine buencamino for niño" |
Write a SQL query that answers the following question: Score of 0–0, and a Date of 02-jan-64 had what result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (result VARCHAR, score VARCHAR, date VARCHAR) | SELECT result FROM table_name_11 WHERE score = "0–0" AND date = "02-jan-64" |
Write a SQL query that answers the following question: Result of l, and a Competition of 1966 asian games, and a Score of 0–1 had what date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (date VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR) | SELECT date FROM table_name_44 WHERE result = "l" AND competition = "1966 asian games" AND score = "0–1" |
Write a SQL query that answers the following question: Competition of friendly, and a Date of 03-jun-62 had what score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR, date VARCHAR) | SELECT score FROM table_name_72 WHERE competition = "friendly" AND date = "03-jun-62" |
Write a SQL query that answers the following question: Result of w, and a Competition of 1968 asian cup happened on what date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (date VARCHAR, result VARCHAR, competition VARCHAR) | SELECT date FROM table_name_5 WHERE result = "w" AND competition = "1968 asian cup" |
Write a SQL query that answers the following question: Result of l, and a Date of 15-oct-64 had what score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (score VARCHAR, result VARCHAR, date VARCHAR) | SELECT score FROM table_name_45 WHERE result = "l" AND date = "15-oct-64" |
Write a SQL query that answers the following question: What incumbent was re-elected in the district in california 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (incumbent VARCHAR, result VARCHAR, district VARCHAR) | SELECT incumbent FROM table_name_85 WHERE result = "re-elected" AND district = "california 3" |
Write a SQL query that answers the following question: What is the district of the incumbent Thomas Larkin Thompson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_name_37 WHERE incumbent = "thomas larkin thompson" |
Write a SQL query that answers the following question: What incumbent has a re-elected result and first elected larger than 1884? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (incumbent VARCHAR, result VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_name_15 WHERE result = "re-elected" AND first_elected > 1884 |
Write a SQL query that answers the following question: Which Telugu తెలుగు has a Kannada ಕನ್ನಡ of chitra ಚಿತ್ತ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (telugu_తెలుగు VARCHAR, kannada_ಕನ್ನಡ VARCHAR) | SELECT telugu_తెలుగు FROM table_name_87 WHERE kannada_ಕನ್ನಡ = "chitra ಚಿತ್ತ" |
Write a SQL query that answers the following question: Which Telugu తెలుగు has a Tamil தமிழ் of pūrāṭam பூராடம்? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (telugu_తెలుగు VARCHAR, tamil_தமிழ் VARCHAR) | SELECT telugu_తెలుగు FROM table_name_68 WHERE tamil_தமிழ் = "pūrāṭam பூராடம்" |
Write a SQL query that answers the following question: Which Telugu తెలుగు has a Tamil தமிழ் of pūsam பூசம்? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (telugu_తెలుగు VARCHAR, tamil_தமிழ் VARCHAR) | SELECT telugu_తెలుగు FROM table_name_52 WHERE tamil_தமிழ் = "pūsam பூசம்" |
Write a SQL query that answers the following question: Which Mongolian has a Tamil தமிழ் of pūrāṭam பூராடம்? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (mongolian VARCHAR, tamil_தமிழ் VARCHAR) | SELECT mongolian FROM table_name_78 WHERE tamil_தமிழ் = "pūrāṭam பூராடம்" |
Write a SQL query that answers the following question: What kind of Sanskrit संस्कृतम् has a Kannada ಕನ್ನಡ of uttara ಉತ್ತರಾ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (sanskrit_संस्कृतम् VARCHAR, kannada_ಕನ್ನಡ VARCHAR) | SELECT sanskrit_संस्कृतम् FROM table_name_95 WHERE kannada_ಕನ್ನಡ = "uttara ಉತ್ತರಾ" |
Write a SQL query that answers the following question: What kind of Sanskrit संस्कृतम् has a Tamil தமிழ் of rōkiṇi ரோகிணி? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (sanskrit_संस्कृतम् VARCHAR, tamil_தமிழ் VARCHAR) | SELECT sanskrit_संस्कृतम् FROM table_name_23 WHERE tamil_தமிழ் = "rōkiṇi ரோகிணி" |
Write a SQL query that answers the following question: What is the frequency for katherine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (frequency VARCHAR, area_served VARCHAR) | SELECT frequency FROM table_name_99 WHERE area_served = "katherine" |
Write a SQL query that answers the following question: Which band has a current freq of 8tab (hpon)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (band VARCHAR, freq_currently VARCHAR) | SELECT band FROM table_name_80 WHERE freq_currently = "8tab (hpon)" |
Write a SQL query that answers the following question: Which freq currently has 0 657? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (freq_currently VARCHAR, frequency VARCHAR) | SELECT freq_currently FROM table_name_86 WHERE frequency = "0 657" |
Write a SQL query that answers the following question: What is the purpose for the katherine freq of 8rn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (purpose VARCHAR, freq_currently VARCHAR, area_served VARCHAR) | SELECT purpose FROM table_name_50 WHERE freq_currently = "8rn" AND area_served = "katherine" |
Write a SQL query that answers the following question: Which freq currently has 0 684? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (freq_currently VARCHAR, frequency VARCHAR) | SELECT freq_currently FROM table_name_7 WHERE frequency = "0 684" |
Write a SQL query that answers the following question: Which band serves darwin for commercial purpose? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (band VARCHAR, area_served VARCHAR, purpose VARCHAR) | SELECT band FROM table_name_61 WHERE area_served = "darwin" AND purpose = "commercial" |
Write a SQL query that answers the following question: What is the points difference for a loss less than 6, and points less than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (points_difference VARCHAR, lost VARCHAR, points VARCHAR) | SELECT points_difference FROM table_name_30 WHERE lost < 6 AND points < 11 |
Write a SQL query that answers the following question: Which Opponent has a Loss of báez (5-5)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_17 WHERE loss = "báez (5-5)" |
Write a SQL query that answers the following question: Which Score has an Opponent of @ rockies, and a Record of 33-35? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT score FROM table_name_75 WHERE opponent = "@ rockies" AND record = "33-35" |
Write a SQL query that answers the following question: Which Attendance has an Opponent of phillies, and a Record of 30-33? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, record VARCHAR) | SELECT SUM(attendance) FROM table_name_34 WHERE opponent = "phillies" AND record = "30-33" |
Write a SQL query that answers the following question: Which Attendance is the highest one that has a Loss of batista (4-5)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (attendance INTEGER, loss VARCHAR) | SELECT MAX(attendance) FROM table_name_3 WHERE loss = "batista (4-5)" |
Write a SQL query that answers the following question: What is the frequency MHz of the ERP W's greater than 250? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (frequency_mhz INTEGER, erp_w INTEGER) | SELECT AVG(frequency_mhz) FROM table_name_55 WHERE erp_w > 250 |
Write a SQL query that answers the following question: What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) | SELECT call_sign FROM table_name_35 WHERE frequency_mhz < 94.9 AND erp_w = 170 |
Write a SQL query that answers the following question: What is the FCC info for the city of Tribune, Kansas? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (fcc_info VARCHAR, city_of_license VARCHAR) | SELECT fcc_info FROM table_name_74 WHERE city_of_license = "tribune, kansas" |
Write a SQL query that answers the following question: What is the city of license with an ERP W less than 170? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (city_of_license VARCHAR, erp_w INTEGER) | SELECT city_of_license FROM table_name_15 WHERE erp_w < 170 |
Write a SQL query that answers the following question: What is the smallest ERP W with a frequency MHz of 94.9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (erp_w INTEGER, frequency_mhz VARCHAR) | SELECT MIN(erp_w) FROM table_name_26 WHERE frequency_mhz = 94.9 |
Write a SQL query that answers the following question: What is the ERP W of a Frequency MHz greater than 89.5 in the city of Washburn, Texas? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (erp_w VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) | SELECT erp_w FROM table_name_68 WHERE frequency_mhz > 89.5 AND city_of_license = "washburn, texas" |
Write a SQL query that answers the following question: What is the total number of bronze medals the U.S. Virgin Islands, which has less than 0 golds, has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (bronze VARCHAR, nation VARCHAR, gold VARCHAR) | SELECT COUNT(bronze) FROM table_name_45 WHERE nation = "u.s. virgin islands" AND gold < 0 |
Write a SQL query that answers the following question: What is the rank of the team with 11 total medals and more than 4 silver medals has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (rank INTEGER, total VARCHAR, silver VARCHAR) | SELECT SUM(rank) FROM table_name_95 WHERE total = 11 AND silver > 4 |
Write a SQL query that answers the following question: What is the lowest total medals the team with more than 0 bronze, 6 silver, and a rank higher than 3 has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR) | SELECT MIN(total) FROM table_name_97 WHERE bronze > 0 AND silver = 6 AND rank < 3 |
Write a SQL query that answers the following question: What is the highest rank of Venezuela, which has more than 9 bronze medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (rank INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT MIN(rank) FROM table_name_54 WHERE nation = "venezuela" AND bronze > 9 |
Write a SQL query that answers the following question: What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (rank INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) | SELECT MIN(rank) FROM table_name_69 WHERE bronze = 0 AND silver = 1 AND gold > 0 |
Write a SQL query that answers the following question: What round has mathieu garon as the player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (round VARCHAR, player VARCHAR) | SELECT round FROM table_name_29 WHERE player = "mathieu garon" |
Write a SQL query that answers the following question: What nationality has a position of left wing, and a round greater than 4, with mattia baldi as the player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (nationality VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR) | SELECT nationality FROM table_name_75 WHERE position = "left wing" AND round > 4 AND player = "mattia baldi" |
Write a SQL query that answers the following question: How many rounds have goalie as the position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (round INTEGER, position VARCHAR) | SELECT SUM(round) FROM table_name_26 WHERE position = "goalie" |
Write a SQL query that answers the following question: Which Competition has a Date of may 2, 1993? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_12 WHERE date = "may 2, 1993" |
Write a SQL query that answers the following question: Which Result has a Goal larger than 6, and a Score of 1–0, and a Competition of friendly, and a Date of may 31, 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (result VARCHAR, date VARCHAR, competition VARCHAR, goal VARCHAR, score VARCHAR) | SELECT result FROM table_name_1 WHERE goal > 6 AND score = "1–0" AND competition = "friendly" AND date = "may 31, 1998" |
Write a SQL query that answers the following question: What was the score on april 4, 1993? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_33 WHERE date = "april 4, 1993" |
Write a SQL query that answers the following question: What's the 1 credit with a Hand of Theoretical Return? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (hand VARCHAR) | SELECT 1 AS _credit FROM table_name_86 WHERE hand = "theoretical return" |
Write a SQL query that answers the following question: What is the games number when the Position was wr, and a Number larger than 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (games VARCHAR, position VARCHAR, number VARCHAR) | SELECT COUNT(games) AS ↑ FROM table_name_58 WHERE position = "wr" AND number > 17 |
Write a SQL query that answers the following question: What is the class for the position of lg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (class VARCHAR, position VARCHAR) | SELECT class FROM table_name_4 WHERE position = "lg" |
Write a SQL query that answers the following question: What is the highest weight for the Farnley Stakes race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (weight__kg_ INTEGER, race VARCHAR) | SELECT MAX(weight__kg_) FROM table_name_67 WHERE race = "farnley stakes" |
Write a SQL query that answers the following question: What time is associated with the event that happened in Tokyo, Japan, ending in a draw, with 3 rounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (time VARCHAR, res VARCHAR, location VARCHAR, round VARCHAR) | SELECT time FROM table_name_44 WHERE location = "tokyo, japan" AND round = 3 AND res = "draw" |
Write a SQL query that answers the following question: Which 2012 has a 2007 of 0 / 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (Id VARCHAR) | SELECT 2012 FROM table_name_8 WHERE 2007 = "0 / 4" |
Write a SQL query that answers the following question: Which 2011 has a Career Win-Loss of 7–10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (career_win_loss VARCHAR) | SELECT 2011 FROM table_name_65 WHERE career_win_loss = "7–10" |
Write a SQL query that answers the following question: Which 1998 has a 2002 of 2–4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (Id VARCHAR) | SELECT 1998 FROM table_name_65 WHERE 2002 = "2–4" |
Write a SQL query that answers the following question: Which 2002 has a 2008 of 3–3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (Id VARCHAR) | SELECT 2002 FROM table_name_79 WHERE 2008 = "3–3" |
Write a SQL query that answers the following question: Which 2003 has a 2012 of 1r, and a 2008 of 1r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (Id VARCHAR) | SELECT 2003 FROM table_name_42 WHERE 2012 = "1r" AND 2008 = "1r" |
Write a SQL query that answers the following question: What club is robert gallery a part of | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (nfl_club VARCHAR, player VARCHAR) | SELECT nfl_club FROM table_name_51 WHERE player = "robert gallery" |
Write a SQL query that answers the following question: How many attendance numbers had more than 15 games, and sellouts of more than 8 in the 2011-12 season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (attendance VARCHAR, season VARCHAR, games VARCHAR, sellouts VARCHAR) | SELECT COUNT(attendance) FROM table_name_34 WHERE games > 15 AND sellouts > 8 AND season = "2011-12" |
Write a SQL query that answers the following question: What's the mean attendance number when the record is 12-4 and the average is less than 10,027? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (attendance INTEGER, record VARCHAR, average VARCHAR) | SELECT AVG(attendance) FROM table_name_24 WHERE record = "12-4" AND average < 10 OFFSET 027 |
Write a SQL query that answers the following question: What is the full amount of averages when the sellouts are less than 14, the season is 2011-12, and attendance is less than 162,474? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (average VARCHAR, attendance VARCHAR, sellouts VARCHAR, season VARCHAR) | SELECT COUNT(average) FROM table_name_73 WHERE sellouts < 14 AND season = "2011-12" AND attendance < 162 OFFSET 474 |
Write a SQL query that answers the following question: What medal was awarded in the men's freestyle 52 kg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (medal VARCHAR, event VARCHAR) | SELECT medal FROM table_name_69 WHERE event = "men's freestyle 52 kg" |
Write a SQL query that answers the following question: Events smaller than 1 had what highest cuts made? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (cuts_made INTEGER, events INTEGER) | SELECT MAX(cuts_made) FROM table_name_65 WHERE events < 1 |
Write a SQL query that answers the following question: What position was played with a Difference of - 5, and a Played larger than 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (position INTEGER, difference VARCHAR, played VARCHAR) | SELECT AVG(position) FROM table_name_48 WHERE difference = "- 5" AND played > 14 |
Write a SQL query that answers the following question: How many games lost associated with under 14 played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (lost VARCHAR, played INTEGER) | SELECT COUNT(lost) FROM table_name_66 WHERE played < 14 |
Write a SQL query that answers the following question: How many games against for team guarani with under 3 draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (against INTEGER, team VARCHAR, drawn VARCHAR) | SELECT SUM(against) FROM table_name_84 WHERE team = "guarani" AND drawn < 3 |
Write a SQL query that answers the following question: What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (congress VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR) | SELECT congress FROM table_name_92 WHERE _number_of_cosponsors < 23 AND date_introduced = "june 30, 2005" |
Write a SQL query that answers the following question: Who sponsored the bill introduced on June 9, 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (sponsor_s_ VARCHAR, date_introduced VARCHAR) | SELECT sponsor_s_ FROM table_name_77 WHERE date_introduced = "june 9, 2011" |
Write a SQL query that answers the following question: Who sponsored the bill that was introduced on June 2, 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (sponsor_s_ VARCHAR, date_introduced VARCHAR) | SELECT sponsor_s_ FROM table_name_55 WHERE date_introduced = "june 2, 2009" |
Write a SQL query that answers the following question: What is the Outcome of the Melbourne Tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (outcome VARCHAR, tournament VARCHAR) | SELECT outcome FROM table_name_48 WHERE tournament = "melbourne" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.