instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the Outcome of the Match played after 2003 with a Score of 6–0, 6–3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (outcome VARCHAR, year VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_88 WHERE year > 2003 AND score = "6–0, 6–3"
Write a SQL query that answers the following question: What is the Outcome of the match with a Score of 6–1, 6–1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_22 WHERE score = "6–1, 6–1"
Write a SQL query that answers the following question: Who has rank 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (name VARCHAR, rank VARCHAR)
SELECT name FROM table_name_23 WHERE rank = 5
Write a SQL query that answers the following question: Which nationality has rank 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (nationality VARCHAR, rank VARCHAR)
SELECT nationality FROM table_name_90 WHERE rank = 4
Write a SQL query that answers the following question: What title was used in the nomination of Matrimonio All'Italiana?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_5 WHERE original_title = "matrimonio all'italiana"
Write a SQL query that answers the following question: What language was the film Pelle Erobreren, which received the best actor nomination, in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (language VARCHAR, category VARCHAR, original_title VARCHAR)
SELECT language FROM table_name_11 WHERE category = "best actor" AND original_title = "pelle erobreren"
Write a SQL query that answers the following question: What title was used in the nomination of the Spanish language film Traffic?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_43 WHERE language = "spanish" AND original_title = "traffic"
Write a SQL query that answers the following question: What title was used in the nomination of Una Giornata Particolare?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_20 WHERE original_title = "una giornata particolare"
Write a SQL query that answers the following question: What date has a Position of back, later than 1964, and a Test debut of 1st rl test v new zealand?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (date VARCHAR, test_debut VARCHAR, position VARCHAR, year VARCHAR)
SELECT date FROM table_name_98 WHERE position = "back" AND year > 1964 AND test_debut = "1st rl test v new zealand"
Write a SQL query that answers the following question: What is the position earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a test debut of inaugural ru test v new zealand?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (position VARCHAR, test_debut VARCHAR, year VARCHAR, cross_code_debut VARCHAR)
SELECT position FROM table_name_92 WHERE year < 1907 AND cross_code_debut = "inaugural rl test v new zealand" AND test_debut = "inaugural ru test v new zealand"
Write a SQL query that answers the following question: What is the cross-code debut later than 1958 for Dick Thornett?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (cross_code_debut VARCHAR, year VARCHAR, player VARCHAR)
SELECT cross_code_debut FROM table_name_87 WHERE year > 1958 AND player = "dick thornett"
Write a SQL query that answers the following question: What position has a Cross-code debut of 1st ru test v ireland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (position VARCHAR, cross_code_debut VARCHAR)
SELECT position FROM table_name_79 WHERE cross_code_debut = "1st ru test v ireland"
Write a SQL query that answers the following question: What was the time for the match with away team Shatin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (time VARCHAR, away_team VARCHAR)
SELECT time FROM table_name_4 WHERE away_team = "shatin"
Write a SQL query that answers the following question: What was the time for the match with away team Convoy Sun Hei Team A?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR)
SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team a"
Write a SQL query that answers the following question: What was the away team for the match that had a time of 18:30?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (away_team VARCHAR, time VARCHAR)
SELECT away_team FROM table_name_45 WHERE time = "18:30"
Write a SQL query that answers the following question: What was the time for the match with away team Mutual Team B?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (time VARCHAR, away_team VARCHAR)
SELECT time FROM table_name_28 WHERE away_team = "mutual team b"
Write a SQL query that answers the following question: What was the time for the match that had a a home team of HKSSF?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (time VARCHAR, home_team VARCHAR)
SELECT time FROM table_name_17 WHERE home_team = "hkssf"
Write a SQL query that answers the following question: How many people attended on december 26, 1982?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_78 WHERE date = "december 26, 1982"
Write a SQL query that answers the following question: How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (byes VARCHAR, losses VARCHAR, wins VARCHAR, wimmera_fl VARCHAR)
SELECT COUNT(byes) FROM table_name_12 WHERE wins < 11 AND wimmera_fl = "minyip murtoa" AND losses < 6
Write a SQL query that answers the following question: Which Losses have an Against smaller than 1018, and Wins smaller than 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (losses INTEGER, against VARCHAR, wins VARCHAR)
SELECT AVG(losses) FROM table_name_42 WHERE against < 1018 AND wins < 14
Write a SQL query that answers the following question: Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (byes INTEGER, against VARCHAR, wimmera_fl VARCHAR)
SELECT MIN(byes) FROM table_name_56 WHERE against > 1018 AND wimmera_fl = "horsham diggers"
Write a SQL query that answers the following question: Which Losses have a Wimmera FL of minyip murtoa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (losses INTEGER, wimmera_fl VARCHAR)
SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa"
Write a SQL query that answers the following question: Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (against INTEGER, draws VARCHAR, losses VARCHAR, wimmera_fl VARCHAR)
SELECT AVG(against) FROM table_name_68 WHERE losses < 5 AND wimmera_fl = "warrack eagles" AND draws < 0
Write a SQL query that answers the following question: Which country has Spence in the name section?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_6 WHERE name = "spence"
Write a SQL query that answers the following question: Which country has the status of transferred, moving to of released, and Solano as the listed name?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR, status VARCHAR, moving_to VARCHAR)
SELECT country FROM table_name_85 WHERE status = "transferred" AND moving_to = "released" AND name = "solano"
Write a SQL query that answers the following question: What is the transfer fee for the country that has the name McCartney listed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (transfer_fee VARCHAR, name VARCHAR)
SELECT transfer_fee FROM table_name_46 WHERE name = "mccartney"
Write a SQL query that answers the following question: What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (name VARCHAR, status VARCHAR, moving_to VARCHAR)
SELECT name FROM table_name_57 WHERE status = "loaned" AND moving_to = "leyton orient"
Write a SQL query that answers the following question: What is the transfer fee for the country of Nir?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (transfer_fee VARCHAR, country VARCHAR)
SELECT transfer_fee FROM table_name_53 WHERE country = "nir"
Write a SQL query that answers the following question: Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (fastest_lap VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
SELECT fastest_lap FROM table_name_50 WHERE winning_driver = "adam christodoulou" AND pole_position = "adam christodoulou"
Write a SQL query that answers the following question: What date was the circuit, snetterton, when riki christodoulou had the fastest lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR)
SELECT date FROM table_name_10 WHERE circuit = "snetterton" AND fastest_lap = "riki christodoulou"
Write a SQL query that answers the following question: who had the pole position at rockingham circuit with adam christodoulou having the fastest lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (pole_position VARCHAR, fastest_lap VARCHAR, circuit VARCHAR)
SELECT pole_position FROM table_name_10 WHERE fastest_lap = "adam christodoulou" AND circuit = "rockingham"
Write a SQL query that answers the following question: What bonus points have 448 as the points against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (bonus_points VARCHAR, points_against VARCHAR)
SELECT bonus_points FROM table_name_47 WHERE points_against = "448"
Write a SQL query that answers the following question: What points for have 30 as the game, and 73 as the total points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (points_for VARCHAR, games VARCHAR, total_points VARCHAR)
SELECT points_for FROM table_name_92 WHERE games = "30" AND total_points = "73"
Write a SQL query that answers the following question: What drawn has 416 as the points for and 533 as the points against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (drawn VARCHAR, points_for VARCHAR, points_against VARCHAR)
SELECT drawn FROM table_name_49 WHERE points_for = "416" AND points_against = "533"
Write a SQL query that answers the following question: What match points have 755 as the points against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (match_points VARCHAR, points_against VARCHAR)
SELECT match_points FROM table_name_8 WHERE points_against = "755"
Write a SQL query that answers the following question: What games have colomiers as the club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (games VARCHAR, club VARCHAR)
SELECT games FROM table_name_47 WHERE club = "colomiers"
Write a SQL query that answers the following question: Which lost has 84 as the match points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (lost VARCHAR, match_points VARCHAR)
SELECT lost FROM table_name_52 WHERE match_points = "84"
Write a SQL query that answers the following question: How many constituents does udaipura have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (constituency_number VARCHAR, name VARCHAR)
SELECT constituency_number FROM table_name_37 WHERE name = "udaipura"
Write a SQL query that answers the following question: What lane was Henrique Barbosa in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (lane VARCHAR, name VARCHAR)
SELECT COUNT(lane) FROM table_name_14 WHERE name = "henrique barbosa"
Write a SQL query that answers the following question: What game was before 2010 and was a role-playing game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (game VARCHAR, year VARCHAR, genre VARCHAR)
SELECT game FROM table_name_82 WHERE year < 2010 AND genre = "role-playing game"
Write a SQL query that answers the following question: What was the platform of Red Dead Redemption?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (platform_s_ VARCHAR, game VARCHAR)
SELECT platform_s_ FROM table_name_11 WHERE game = "red dead redemption"
Write a SQL query that answers the following question: Who was the developer of Wii?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR)
SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii"
Write a SQL query that answers the following question: What year was The Walking Dead?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (year VARCHAR, game VARCHAR)
SELECT COUNT(year) FROM table_name_95 WHERE game = "the walking dead"
Write a SQL query that answers the following question: What was the platform when the developer was Telltale Games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR)
SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games"
Write a SQL query that answers the following question: What is the game of developer Rockstar Games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (game VARCHAR, developer_s_ VARCHAR)
SELECT game FROM table_name_71 WHERE developer_s_ = "rockstar games"
Write a SQL query that answers the following question: How much Elevation (m) has a Prominence (m) larger than 2,876?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (elevation__m_ VARCHAR, prominence__m_ INTEGER)
SELECT COUNT(elevation__m_) FROM table_name_18 WHERE prominence__m_ > 2 OFFSET 876
Write a SQL query that answers the following question: When was millwall the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_11 WHERE home_team = "millwall"
Write a SQL query that answers the following question: What was the score when Arsenal was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_49 WHERE away_team = "arsenal"
Write a SQL query that answers the following question: Which away team had a Score of 2–0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (away_team VARCHAR, score VARCHAR)
SELECT away_team FROM table_name_53 WHERE score = "2–0"
Write a SQL query that answers the following question: When was Arsenal was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_17 WHERE away_team = "arsenal"
Write a SQL query that answers the following question: What's the date released when there was 9.7% of Green communist?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (date_released VARCHAR, green_communist VARCHAR)
SELECT date_released FROM table_name_53 WHERE green_communist = "9.7%"
Write a SQL query that answers the following question: What's the green communist when Euroteste/JN is the polling Institute?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (green_communist VARCHAR, polling_institute VARCHAR)
SELECT green_communist FROM table_name_41 WHERE polling_institute = "euroteste/jn"
Write a SQL query that answers the following question: What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (silver INTEGER, gold VARCHAR, rank VARCHAR)
SELECT MAX(silver) FROM table_name_78 WHERE "total" > 2 AND rank = "total" AND gold > 44
Write a SQL query that answers the following question: What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT MIN(gold) FROM table_name_16 WHERE bronze = 0 AND rank = "19" AND silver < 1
Write a SQL query that answers the following question: What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT MAX(bronze) FROM table_name_18 WHERE silver < 1 AND nation = "belgium (bel)" AND gold < 0
Write a SQL query that answers the following question: With silver medals less than 1, and total medals less than 2, what is the most bronze medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_83 WHERE silver < 1 AND total < 2
Write a SQL query that answers the following question: Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (byes VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT COUNT(byes) FROM table_name_80 WHERE wins = 14 AND losses > 2
Write a SQL query that answers the following question: Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (wins INTEGER, against VARCHAR, losses VARCHAR)
SELECT AVG(wins) FROM table_name_11 WHERE against = 1132 AND losses < 7
Write a SQL query that answers the following question: What was the date for the game that had a Location/Attendance of the spectrum?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (date VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_name_92 WHERE location_attendance = "the spectrum"
Write a SQL query that answers the following question: Who was the opponent when they played at the Skydome?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (opponent VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_53 WHERE location_attendance = "skydome"
Write a SQL query that answers the following question: What was the record on January 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_61 WHERE date = "january 17"
Write a SQL query that answers the following question: What was the location and attendance when the record was 19-17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (location_attendance VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_name_69 WHERE record = "19-17"
Write a SQL query that answers the following question: What city joined the Independents conference after 1963?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (city VARCHAR, year_joined VARCHAR, conference_joined VARCHAR)
SELECT city FROM table_name_26 WHERE year_joined > 1963 AND conference_joined = "independents"
Write a SQL query that answers the following question: What is the year that the Gary team with mascot of the Tornado joined?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (year_joined INTEGER, city VARCHAR, mascot VARCHAR)
SELECT MIN(year_joined) FROM table_name_94 WHERE city = "gary" AND mascot = "tornado"
Write a SQL query that answers the following question: What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (previous_conference VARCHAR, conference_joined VARCHAR, mascot VARCHAR)
SELECT previous_conference FROM table_name_88 WHERE conference_joined = "indiana lake shore" AND mascot = "governors"
Write a SQL query that answers the following question: What is the year that the Roughriders left the conference?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (year_left INTEGER, mascot VARCHAR)
SELECT MAX(year_left) FROM table_name_25 WHERE mascot = "roughriders"
Write a SQL query that answers the following question: What conference did the city of Valparaiso join?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (conference_joined VARCHAR, city VARCHAR)
SELECT conference_joined FROM table_name_5 WHERE city = "valparaiso"
Write a SQL query that answers the following question: What is the duration of the character Bartha Zsolt?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (duration VARCHAR, character VARCHAR)
SELECT duration FROM table_name_93 WHERE character = "bartha zsolt"
Write a SQL query that answers the following question: How many losses have jake sharp as the name, with a long less than 30?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (loss VARCHAR, name VARCHAR, long VARCHAR)
SELECT COUNT(loss) FROM table_name_81 WHERE name = "jake sharp" AND long < 30
Write a SQL query that answers the following question: What is the average long that has 1581 as a gain, with a loss less than 308?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (long INTEGER, gain VARCHAR, loss VARCHAR)
SELECT AVG(long) FROM table_name_72 WHERE gain = 1581 AND loss < 308
Write a SQL query that answers the following question: How many gains have a long greater than 8, with avg/g of 124.9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (gain INTEGER, long VARCHAR, avg_g VARCHAR)
SELECT SUM(gain) FROM table_name_27 WHERE long > 8 AND avg_g = 124.9
Write a SQL query that answers the following question: How many longs have a gain less than 379, and 0.8 as an avg/g?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (long INTEGER, gain VARCHAR, avg_g VARCHAR)
SELECT SUM(long) FROM table_name_11 WHERE gain < 379 AND avg_g = 0.8
Write a SQL query that answers the following question: What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (gain INTEGER, name VARCHAR, avg_g VARCHAR)
SELECT MIN(gain) FROM table_name_35 WHERE name = "toben opurum" AND avg_g < 54.1
Write a SQL query that answers the following question: Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR, points VARCHAR)
SELECT driver FROM table_name_72 WHERE grid < 17 AND points > 0 AND laps = 87 AND time_retired = "1:48:11.023"
Write a SQL query that answers the following question: Which Points have a Grid larger than 7, and a Driver of alex tagliani, and a Lapse smaller than 85?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (points INTEGER, laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT MAX(points) FROM table_name_56 WHERE grid > 7 AND driver = "alex tagliani" AND laps < 85
Write a SQL query that answers the following question: What date has uefa euro 2008 qualification as the competition?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_55 WHERE competition = "uefa euro 2008 qualification"
Write a SQL query that answers the following question: What date has friendly as the competition, with pretoria, South Africa as the venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT date FROM table_name_79 WHERE competition = "friendly" AND venue = "pretoria, south africa"
Write a SQL query that answers the following question: What is the lowest final score of the American Cup competition before 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (score_final INTEGER, competition_description VARCHAR, year VARCHAR)
SELECT MIN(score_final) FROM table_name_15 WHERE competition_description = "american cup" AND year < 2009
Write a SQL query that answers the following question: What is the result for the game before week 7 against BYE?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_95 WHERE week < 7 AND opponent = "bye"
Write a SQL query that answers the following question: What was the date for the game after week 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date VARCHAR, week INTEGER)
SELECT date FROM table_name_74 WHERE week > 16
Write a SQL query that answers the following question: What was the attendance for the game against tampa bay buccaneers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_61 WHERE opponent = "tampa bay buccaneers"
Write a SQL query that answers the following question: What was the date of the game after week 5 with 62,262 fans attending?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (date VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_82 WHERE week > 5 AND attendance = "62,262"
Write a SQL query that answers the following question: Which Location has a Record of 5–2–1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_31 WHERE record = "5–2–1"
Write a SQL query that answers the following question: Which Record has an Event of inoki bom-ba-ye 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_1 WHERE event = "inoki bom-ba-ye 2002"
Write a SQL query that answers the following question: Which Opponent has a Record of 2–0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_80 WHERE record = "2–0"
Write a SQL query that answers the following question: Which Record has a Round larger than 2, and an Event of bellator 38?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (record VARCHAR, round VARCHAR, event VARCHAR)
SELECT record FROM table_name_62 WHERE round > 2 AND event = "bellator 38"
Write a SQL query that answers the following question: What was John Jones's pick#?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (pick INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_30 WHERE player = "john jones"
Write a SQL query that answers the following question: What was the pick # of the player who has a hometown/school of Atlanta, GA?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (pick INTEGER, hometown_school VARCHAR)
SELECT AVG(pick) FROM table_name_62 WHERE hometown_school = "atlanta, ga"
Write a SQL query that answers the following question: What is Mañana es para siempre of impreuna pentru totdeauna from Monday to Friday?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (monday_to_friday VARCHAR, mañana_es_para_siempre VARCHAR)
SELECT monday_to_friday FROM table_name_34 WHERE mañana_es_para_siempre = "impreuna pentru totdeauna"
Write a SQL query that answers the following question: When does the El Canal de las Estrellas of pop tv show from Monday to Friday?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (monday_to_friday VARCHAR, el_canal_de_las_estrellas VARCHAR)
SELECT monday_to_friday FROM table_name_87 WHERE el_canal_de_las_estrellas = "pop tv"
Write a SQL query that answers the following question: What is the enrollment for the AAAA class in IHSAA?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (enrollment INTEGER, ihsaa_football_class VARCHAR)
SELECT SUM(enrollment) FROM table_name_85 WHERE ihsaa_football_class = "aaaa"
Write a SQL query that answers the following question: What is the IHSAA Football class at Culver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (ihsaa_football_class VARCHAR, location VARCHAR)
SELECT ihsaa_football_class FROM table_name_93 WHERE location = "culver"
Write a SQL query that answers the following question: What school has the Lancers as their mascot?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (location VARCHAR, mascot VARCHAR)
SELECT location FROM table_name_86 WHERE mascot = "lancers"
Write a SQL query that answers the following question: What is the total enrollment at Laville?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (enrollment VARCHAR, school VARCHAR)
SELECT COUNT(enrollment) FROM table_name_97 WHERE school = "laville"
Write a SQL query that answers the following question: What is the highest average for teams ranked higher than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (avg INTEGER, rank INTEGER)
SELECT MAX(avg) FROM table_name_30 WHERE rank > 9
Write a SQL query that answers the following question: What is the name of the 2008 club with Nadia Centoni Category:Articles with hCards?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (name VARCHAR)
SELECT 2008 AS _club FROM table_name_69 WHERE name = "nadia centoni category:articles with hcards"
Write a SQL query that answers the following question: Which 2008 club has the name Francesca Piccinini Category:Articles with hCards?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (name VARCHAR)
SELECT 2008 AS _club FROM table_name_71 WHERE name = "francesca piccinini category:articles with hcards"
Write a SQL query that answers the following question: What is the least amount of wins when against is 1314?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (wins INTEGER, against VARCHAR)
SELECT MIN(wins) FROM table_name_41 WHERE against = 1314
Write a SQL query that answers the following question: What is the number of against when the wins were 8, and a Club of South Warrnambool, with less than 0 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (against INTEGER, draws VARCHAR, wins VARCHAR, club VARCHAR)
SELECT SUM(against) FROM table_name_29 WHERE wins = 8 AND club = "south warrnambool" AND draws < 0
Write a SQL query that answers the following question: What is the number of wins when the against is larger than 1155, for Warrnambool, with more than 0 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (wins INTEGER, draws VARCHAR, against VARCHAR, club VARCHAR)
SELECT AVG(wins) FROM table_name_20 WHERE against > 1155 AND club = "warrnambool" AND draws > 0