Simple Question (Direct)
Simple Question
Q4723833
P54
Q1194951
USER
What is Alfredo Piedra Mora a member of ?
(Q4723833,P54,c(Q1194951))
action filter_type
action find
entity Q4723833
relation P54
type Q1194951
['Q4723833', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q4723833 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
Alfredo Piedra Mora
action filter_type
action find
entity Alfredo Piedra Mora
relation member of sports team
type national sports team
['Alfredo Piedra Mora', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Alfredo_Piedra_Mora property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
national sports team
Q194387
SYSTEM
Costa Rica national football team
Q194387
(Q4723833,P54,c(Q1194951))
action filter_type
action find
entity Q4723833
relation P54
type Q1194951
Member of the [ANSWER] Alfredo Piedra Mora is a
['Q4723833', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q4723833 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
Costa Rica national football team
Member of the Costa Rica national football team Alfredo Piedra Mora is a
Costa Rica national football team
action filter_type
action find
entity Alfredo Piedra Mora
relation member of sports team
type national sports team
['Alfredo Piedra Mora', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Alfredo_Piedra_Mora property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q194387
P1532
Q15617994
USER
Which administrative territory does that national sports team play for ?
(Q194387,P1532,c(Q15617994))
action filter_type
action find
entity Q194387
relation P1532
type Q15617994
['Q194387', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q194387 property:P1532 ?x . ?x rdf:type ontology:Q15617994 }
Costa Rica national football team
action filter_type
action find
entity Costa Rica national football team
relation country for sport
type designation for an administrative territorial entity
['Costa Rica national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Costa_Rica_national_football_team property:country_for_sport ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q800
SYSTEM
Costa Rica
Q800
(Q194387,P1532,c(Q15617994))
action filter_type
action find
entity Q194387
relation P1532
type Q15617994
That national sports team plays in [ANSWER]
['Q194387', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q194387 property:P1532 ?x . ?x rdf:type ontology:Q15617994 }
Costa Rica
That national sports team plays in Costa Rica
Costa Rica
action filter_type
action find
entity Costa Rica national football team
relation country for sport
type designation for an administrative territorial entity
['Costa Rica national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Costa_Rica_national_football_team property:country_for_sport ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1923
Q1194951 Q13406554 Q15275719
USER
Which national sports teams participated in atleast 8 sport competitions or recurring events ?
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action atleast
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
value 8
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?x >= 8 ) . { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?x ) WHERE { { ?f rdf:type ontology:Q1194951 . ?h rdf:type ontology:Q13406554 . ?h property:P1923 ?f } UNION { ?h property:P1923 ?f . ?f rdf:type ontology:Q1194951 . ?h rdf:type ontology:Q15275719 } } GROUP BY ?f } }
action atleast
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
value 8
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?x >= 8 ) . { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?x ) WHERE { { ?f rdf:type ontology:national_sports_team . ?h rdf:type ontology:sport_competition . ?h property:participating_teams ?f } UNION { ?h property:participating_teams ?f . ?f rdf:type ontology:national_sports_team . ?h rdf:type ontology:recurring_event } } GROUP BY ?f } }
[]
national sports team sport competition recurring event
Q166196 Q43310 Q83459
SYSTEM
Poland national football team, Germany national football team, Brazil national football team
Q34044 Q43310 Q267245 Q166776 Q160826 Q543842 Q170561 Q172025 Q172020 Q134479 Q47050 Q42267 Q166196 Q83459 Q164089 Q163534 Q188363 Q676899 Q168397 Q165141 Q47774 Q182072 Q164134 Q79800 Q134916 Q47762
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action atleast
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
value 8
[ANSWERS] participated in atleast 8 sport competitions or recurring events
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?x >= 8 ) . { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?x ) WHERE { { ?f rdf:type ontology:Q1194951 . ?h rdf:type ontology:Q13406554 . ?h property:P1923 ?f } UNION { ?h property:P1923 ?f . ?f rdf:type ontology:Q1194951 . ?h rdf:type ontology:Q15275719 } } GROUP BY ?f } }
Scotland national football team Germany national football team Portugal national football team Belgium national football team Sweden national football team South Korea national football team Hungary national football team Chile national football team Paraguay national football team Croatia national football team Netherlands national football team Spain national football team Poland national football team Brazil national football team Mexico national football team Austria national football team Yugoslavia national football team Italy national football team Romania national football team Swiss national football team France national football team Czechoslovakia national football team United States men's national soccer team Argentina national football team Uruguay national football team England national football team
Poland national football team, Germany national football team and Brazil national football team participated in atleast 8 sport competitions or recurring events
Poland national football team Germany national football team Brazil national football team
action atleast
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
value 8
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?x >= 8 ) . { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?x ) WHERE { { ?f rdf:type ontology:national_sports_team . ?h rdf:type ontology:sport_competition . ?h property:participating_teams ?f } UNION { ?h property:participating_teams ?f . ?f rdf:type ontology:national_sports_team . ?h rdf:type ontology:recurring_event } } GROUP BY ?f } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q83459
P1346
Q1190554
USER
Where was that national sports team decalred as a champion ?
(c(Q1190554),P1346,Q83459)
action filter_type
action find_reverse
entity Q83459
relation P1346
type Q1190554
[{'concept': 'Q1190554'}, 'P1346', 'Q83459']
SELECT DISTINCT ?m WHERE { ?m property:P1346 resource:Q83459 . ?m rdf:type ontology:Q1190554 }
Brazil national football team
action filter_type
action find_reverse
entity Brazil national football team
relation winner
type event
[{'concept': 'event'}, 'winner', 'Brazil national football team']
SELECT DISTINCT ?m WHERE { ?m property:winner resource:Brazil_national_football_team . ?m rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q166196
SYSTEM
Did you mean Poland national football team ?
Q166196 Q43310 Q83459
(c(Q1190554),P1346,Q166196) (c(Q1190554),P1346,Q43310) (c(Q1190554),P1346,Q83459)
[ANSWER]
[{'concept': 'Q1190554'}, 'P1346', 'Q166196'] [{'concept': 'Q1190554'}, 'P1346', 'Q43310'] [{'concept': 'Q1190554'}, 'P1346', 'Q83459']
SELECT DISTINCT ?m WHERE { ?m property:P1346 resource:Q83459 . ?m rdf:type ontology:Q1190554 }
Poland national football team Germany national football team Brazil national football team
Did you mean Poland national football team ?
Poland national football team
[{'concept': 'event'}, 'winner', 'Poland national football team'] [{'concept': 'event'}, 'winner', 'Germany national football team'] [{'concept': 'event'}, 'winner', 'Brazil national football team']
SELECT DISTINCT ?m WHERE { ?m property:winner resource:Brazil_national_football_team . ?m rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
No, I meant Brazil national football team. Could you tell me the answer for that?
(c(Q1190554),P1346,Q83459)
Q83459
[{'concept': 'Q1190554'}, 'P1346', 'Q83459']
[{'concept': 'event'}, 'winner', 'Brazil national football team']
[]
Q715021
SYSTEM
2002 FIFA World Cup Final
Q715021
(c(Q1190554),P1346,Q83459)
action filter_type
action find_reverse
entity Q83459
relation P1346
type Q1190554
[ANSWER] that national sports team was decalred as a champion
[{'concept': 'Q1190554'}, 'P1346', 'Q83459']
SELECT DISTINCT ?m WHERE { ?m property:P1346 resource:Q83459 . ?m rdf:type ontology:Q1190554 }
2002 FIFA World Cup Final
2002 FIFA World Cup Final that national sports team was decalred as a champion
2002 FIFA World Cup Final
action filter_type
action find_reverse
entity Brazil national football team
relation winner
type event
[{'concept': 'event'}, 'winner', 'Brazil national football team']
SELECT DISTINCT ?m WHERE { ?m property:winner resource:Brazil_national_football_team . ?m rdf:type ontology:event }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q715021 Q17069334 Q47735
P361
Q15275719
USER
Is that event a portion of Pearl International Film Festival and 2002 FIFA World Cup ?
(Q715021,P361,Q17069334) (Q715021,P361,Q47735)
action is_in
entity Q715021
action intersection
action find_reverse
entity Q17069334
relation P361
action find_reverse
entity Q47735
relation P361
['Q715021', 'P361', 'Q17069334'] ['Q715021', 'P361', 'Q47735']
ASK WHERE { resource:Q715021 property:P361 resource:Q17069334 . resource:Q715021 property:P361 resource:Q47735 }
2002 FIFA World Cup Final Pearl International Film Festival 2002 FIFA World Cup
action is_in
entity 2002 FIFA World Cup Final
action intersection
action find_reverse
entity Pearl International Film Festival
relation part of
action find_reverse
entity 2002 FIFA World Cup
relation part of
['2002 FIFA World Cup Final', 'part of', 'Pearl International Film Festival'] ['2002 FIFA World Cup Final', 'part of', '2002 FIFA World Cup']
ASK WHERE { resource:2002_FIFA_World_Cup_Final property:part_of resource:Pearl_International_Film_Festival . resource:2002_FIFA_World_Cup_Final property:part_of resource:2002_FIFA_World_Cup }
[]
recurring event
SYSTEM
NO and YES respectively
(Q715021,P361,Q17069334) (Q715021,P361,Q47735)
action is_in
entity Q715021
action intersection
action find_reverse
entity Q17069334
relation P361
action find_reverse
entity Q47735
relation P361
[ANSWER]
['Q715021', 'P361', 'Q17069334'] ['Q715021', 'P361', 'Q47735']
ASK WHERE { resource:Q715021 property:P361 resource:Q17069334 . resource:Q715021 property:P361 resource:Q47735 }
NO and YES respectively
action is_in
entity 2002 FIFA World Cup Final
action intersection
action find_reverse
entity Pearl International Film Festival
relation part of
action find_reverse
entity 2002 FIFA World Cup
relation part of
['2002 FIFA World Cup Final', 'part of', 'Pearl International Film Festival'] ['2002 FIFA World Cup Final', 'part of', '2002 FIFA World Cup']
ASK WHERE { resource:2002_FIFA_World_Cup_Final property:part_of resource:Pearl_International_Film_Festival . resource:2002_FIFA_World_Cup_Final property:part_of resource:2002_FIFA_World_Cup }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q715021
P1344
Q1194951
USER
Which national sports teams took part in that event ?
action filter_type
action find_reverse
entity Q715021
relation P1344
type Q1194951
SELECT DISTINCT ?h WHERE { ?h property:P1344 resource:Q715021 . ?h rdf:type ontology:Q1194951 }
2002 FIFA World Cup Final
action filter_type
action find_reverse
entity 2002 FIFA World Cup Final
relation participant of
type national sports team
SELECT DISTINCT ?h WHERE { ?h property:participant_of resource:2002_FIFA_World_Cup_Final . ?h rdf:type ontology:national_sports_team }
[]
national sports team
Q43310 Q83459
SYSTEM
Germany national football team, Brazil national football team
Q43310 Q83459
action filter_type
action find_reverse
entity Q715021
relation P1344
type Q1194951
[ANSWERS] took part in that event
SELECT DISTINCT ?h WHERE { ?h property:P1344 resource:Q715021 . ?h rdf:type ontology:Q1194951 }
Germany national football team Brazil national football team
Germany national football team and Brazil national football team took part in that event
Germany national football team Brazil national football team
action filter_type
action find_reverse
entity 2002 FIFA World Cup Final
relation participant of
type national sports team
SELECT DISTINCT ?h WHERE { ?h property:participant_of resource:2002_FIFA_World_Cup_Final . ?h rdf:type ontology:national_sports_team }
[]