Simple Question (Direct)
Simple Question
Q19631475
P641
Q349
USER
Which sport was Abdelali Mhamdi a part of ?
(Q19631475,P641,c(Q349))
action filter_type
action find
entity Q19631475
relation P641
type Q349
['Q19631475', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q19631475 property:P641 ?n . ?n rdf:type ontology:Q349 }
Abdelali Mhamdi
action filter_type
action find
entity Abdelali Mhamdi
relation sport
type sport
['Abdelali Mhamdi', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Abdelali_Mhamdi property:sport ?n . ?n rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q19631475,P641,c(Q349))
action filter_type
action find
entity Q19631475
relation P641
type Q349
Which sport was Abdelali Mhamdi a part of
['Q19631475', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q19631475 property:P641 ?n . ?n rdf:type ontology:Q349 }
association football
Which sport was Abdelali Mhamdi a part of
association football
action filter_type
action find
entity Abdelali Mhamdi
relation sport
type sport
['Abdelali Mhamdi', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Abdelali_Mhamdi property:sport ?n . ?n rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19631475
P54
Q1194951
USER
What is that person a member of ?
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q19631475
relation P54
type Q1194951
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1194951 . resource:Q19631475 property:P54 ?i }
Abdelali Mhamdi
action filter_type
action find
entity Abdelali Mhamdi
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:national_sports_team . resource:Abdelali_Mhamdi property:member_of_sports_team ?i }
[]
national sports team
Q207337
SYSTEM
Morocco national football team
Q207337
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q19631475
relation P54
type Q1194951
That person a member of is the [ANSWER]
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1194951 . resource:Q19631475 property:P54 ?i }
Morocco national football team
That person a member of is the Morocco national football team
Morocco national football team
action filter_type
action find
entity Abdelali Mhamdi
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:national_sports_team . resource:Abdelali_Mhamdi property:member_of_sports_team ?i }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P1923
Q1194951 Q13406554 Q15275719
USER
How many national sports teams took part in greater number of sport competitions and recurring events than that national sports team ?
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action count
action filter_multi_types
action find_reverse
entity Q207337
relation P1923
type Q13406554
type Q15275719
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { ?j property:P1923 resource:Q207337 . { { ?j rdf:type ontology:Q13406554 } UNION { ?j rdf:type ontology:Q15275719 } } } } . FILTER ( ?i > ?w ) . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?f ) { ( ontology:Q15275719 ) ( ontology:Q13406554 ) } . ?z rdf:type ?f } GROUP BY ?b } }
action count
action greater
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
action count
action filter_multi_types
action find_reverse
entity Morocco national football team
relation participating teams
type sport competition
type recurring event
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { ?j property:participating_teams resource:Morocco_national_football_team . { { ?j rdf:type ontology:sport_competition } UNION { ?j rdf:type ontology:recurring_event } } } } . FILTER ( ?i > ?w ) . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?f ) { ( ontology:recurring_event ) ( ontology:sport_competition ) } . ?z rdf:type ?f } GROUP BY ?b } }
[]
national sports team sport competition recurring event
SYSTEM
41
Q212166 Q34044 Q174512 Q190978 Q43310 Q212564 Q180845 Q267245 Q166776 Q160826 Q180857 Q543842 Q726080 Q170561 Q172025 Q172020 Q170566 Q194387 Q134479 Q47050 Q42267 Q189275 Q166196 Q83459 Q175309 Q164089 Q163534 Q188363 Q676899 Q168397 Q483856 Q165141 Q47774 Q189198 Q163547 Q182072 Q164134 Q79800 Q134916 Q47762 Q181930
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action count
action filter_multi_types
action find_reverse
entity Q207337
relation P1923
type Q13406554
type Q15275719
[ANSWER]
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { ?j property:P1923 resource:Q207337 . { { ?j rdf:type ontology:Q13406554 } UNION { ?j rdf:type ontology:Q15275719 } } } } . FILTER ( ?i > ?w ) . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?f ) { ( ontology:Q15275719 ) ( ontology:Q13406554 ) } . ?z rdf:type ?f } GROUP BY ?b } }
Peru national football team Scotland national football team Slovakia national football team Northern Ireland national football team Germany national football team Colombia national football team Bulgaria national football team Portugal national football team Belgium national football team Sweden national football team Wales national football team South Korea national football team Russia national football team Hungary national football team Chile national football team Paraguay national football team Japan national football team Costa Rica national football team Croatia national football team Netherlands national football team Spain national football team Soviet Union national football team Poland national football team Brazil national football team Cameroon national football team Mexico national football team Austria national football team Yugoslavia national football team Italy national football team Romania national football team Turkey national football team Swiss national football team France national football team Iceland national football team Republic of Ireland 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 Nigeria national football team
41
action count
action greater
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
action count
action filter_multi_types
action find_reverse
entity Morocco national football team
relation participating teams
type sport competition
type recurring event
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { ?j property:participating_teams resource:Morocco_national_football_team . { { ?j rdf:type ontology:sport_competition } UNION { ?j rdf:type ontology:recurring_event } } } } . FILTER ( ?i > ?w ) . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?f ) { ( ontology:recurring_event ) ( ontology:sport_competition ) } . ?z rdf:type ?f } GROUP BY ?b } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3279
Q502895 Q15991303 Q500834
USER
Which people were the statistical leader of exactly 3 association football leagues and tournaments ?
(c(Q15991303)|c(Q500834),P3279,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q15991303
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q500834
value 3
[[{'concept': 'Q15991303'}, {'concept': 'Q500834'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?d WHERE { ?t rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15991303 ) ( ontology:Q500834 ) } } GROUP BY ?d } . FILTER ( ?z = 3 ) }
action equal
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type association football league
action find_reverse_tuple_counts
relation statistical leader
type common name
type tournament
value 3
[[{'concept': 'association football league'}, {'concept': 'tournament'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?d WHERE { ?t rdf:type ?k . VALUES ( ?k ) { ( ontology:association_football_league ) ( ontology:tournament ) } } GROUP BY ?d } . FILTER ( ?z = 3 ) }
[]
common name association football league tournament
Q310519 Q152871
SYSTEM
Ulf Kirsten, Karl-Heinz Rummenigge
Q310519 Q152871
(c(Q15991303)|c(Q500834),P3279,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q15991303
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q500834
value 3
[ANSWERS] were the statistical leader of exactly 3 association football leagues and tournaments
[[{'concept': 'Q15991303'}, {'concept': 'Q500834'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?d WHERE { ?t rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15991303 ) ( ontology:Q500834 ) } } GROUP BY ?d } . FILTER ( ?z = 3 ) }
Ulf Kirsten Karl-Heinz Rummenigge
Ulf Kirsten and Karl-Heinz Rummenigge were the statistical leader of exactly 3 association football leagues and tournaments
Ulf Kirsten Karl-Heinz Rummenigge
action equal
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type association football league
action find_reverse_tuple_counts
relation statistical leader
type common name
type tournament
value 3
[[{'concept': 'association football league'}, {'concept': 'tournament'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?d WHERE { ?t rdf:type ?k . VALUES ( ?k ) { ( ontology:association_football_league ) ( ontology:tournament ) } } GROUP BY ?d } . FILTER ( ?z = 3 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q298025 Q152871
P7
Q502895
USER
Which people had Karl-Heinz Rummenigge or Joss Whedon as brother ?
OR((c(Q502895),P7,Q152871), (c(Q502895),P7,Q298025))
action filter_type
action union
action find_reverse
entity Q152871
relation P7
action find_reverse
entity Q298025
relation P7
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q152871'], [{'concept': 'Q502895'}, 'P7', 'Q298025']]}
SELECT DISTINCT ?q WHERE { { { ?q property:P7 resource:Q152871 } UNION { ?q property:P7 resource:Q298025 } } . ?q rdf:type ontology:Q502895 }
Joss Whedon Karl-Heinz Rummenigge
action filter_type
action union
action find_reverse
entity Karl-Heinz Rummenigge
relation brother
action find_reverse
entity Joss Whedon
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Karl-Heinz Rummenigge'], [{'concept': 'common name'}, 'brother', 'Joss Whedon']]}
SELECT DISTINCT ?q WHERE { { { ?q property:brother resource:Karl-Heinz_Rummenigge } UNION { ?q property:brother resource:Joss_Whedon } } . ?q rdf:type ontology:common_name }
[]
common name
Q6587010 Q1387486 Q686183 Q3176340
SYSTEM
Zack Whedon, Wolfgang Rummenigge, Michael Rummenigge, Jed Whedon
Q6587010 Q1387486 Q686183 Q3176340
OR((c(Q502895),P7,Q152871), (c(Q502895),P7,Q298025))
action filter_type
action union
action find_reverse
entity Q152871
relation P7
action find_reverse
entity Q298025
relation P7
type Q502895
[ANSWERS] had Karl-Heinz Rummenigge or Joss Whedon as brother
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q152871'], [{'concept': 'Q502895'}, 'P7', 'Q298025']]}
SELECT DISTINCT ?q WHERE { { { ?q property:P7 resource:Q152871 } UNION { ?q property:P7 resource:Q298025 } } . ?q rdf:type ontology:Q502895 }
Zack Whedon Wolfgang Rummenigge Michael Rummenigge Jed Whedon
Zack Whedon, Wolfgang Rummenigge, Michael Rummenigge and Jed Whedon had Karl-Heinz Rummenigge or Joss Whedon as brother
Zack Whedon Wolfgang Rummenigge Michael Rummenigge Jed Whedon
action filter_type
action union
action find_reverse
entity Karl-Heinz Rummenigge
relation brother
action find_reverse
entity Joss Whedon
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Karl-Heinz Rummenigge'], [{'concept': 'common name'}, 'brother', 'Joss Whedon']]}
SELECT DISTINCT ?q WHERE { { { ?q property:brother resource:Karl-Heinz_Rummenigge } UNION { ?q property:brother resource:Joss_Whedon } } . ?q rdf:type ontology:common_name }
[]