Simple Question (Direct)
Simple Question
Q75650
P54
Q1194951
USER
Which national sports team is Ádám Simon a member of ?
(Q75650,P54,c(Q1194951))
action filter_type
action find
entity Q75650
relation P54
type Q1194951
['Q75650', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?o WHERE { resource:Q75650 property:P54 ?o . ?o rdf:type ontology:Q1194951 }
Ádám Simon
action filter_type
action find
entity Ádám Simon
relation member of sports team
type national sports team
['Ádám Simon', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?o WHERE { resource:Ádám_Simon property:member_of_sports_team ?o . ?o rdf:type ontology:national_sports_team }
[]
national sports team
Q170561
SYSTEM
Hungary national football team
Q170561
(Q75650,P54,c(Q1194951))
action filter_type
action find
entity Q75650
relation P54
type Q1194951
[ANSWER]
['Q75650', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?o WHERE { resource:Q75650 property:P54 ?o . ?o rdf:type ontology:Q1194951 }
Hungary national football team
Hungary national football team
action filter_type
action find
entity Ádám Simon
relation member of sports team
type national sports team
['Ádám Simon', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?o WHERE { resource:Ádám_Simon property:member_of_sports_team ?o . ?o rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q170561
P463
Q502895
USER
Which person is a member of that national sports team ?
(c(Q502895),P463,Q170561)
action filter_type
action find_reverse
entity Q170561
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q170561']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P463 resource:Q170561 }
Hungary national football team
action filter_type
action find_reverse
entity Hungary national football team
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Hungary national football team']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:member_of resource:Hungary_national_football_team }
[]
common name
Q1287334
SYSTEM
Imre Serényi
Q1287334
(c(Q502895),P463,Q170561)
action filter_type
action find_reverse
entity Q170561
relation P463
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P463', 'Q170561']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P463 resource:Q170561 }
Imre Serényi
Imre Serényi
action filter_type
action find_reverse
entity Hungary national football team
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Hungary national football team']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:member_of resource:Hungary_national_football_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1287334
P106
Q12737077
USER
What is the profession of that person ?
(Q1287334,P106,c(Q12737077))
action filter_type
action find
entity Q1287334
relation P106
type Q12737077
['Q1287334', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1287334 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Imre Serényi
action filter_type
action find
entity Imre Serényi
relation occupation
type occupation
['Imre Serényi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Imre_Serényi property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q1287334,P106,c(Q12737077))
action filter_type
action find
entity Q1287334
relation P106
type Q12737077
[ANSWER]
['Q1287334', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1287334 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
association football player
association football player
action filter_type
action find
entity Imre Serényi
relation occupation
type occupation
['Imre Serényi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Imre_Serényi property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1597567 Q1287334
P20
Q56061
USER
Which administrative territories did Imre Serényi or Heinrich Held expire ?
OR((Q1287334,P20,c(Q56061)), (Q1597567,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1287334
relation P20
action find
entity Q1597567
relation P20
type Q56061
{'OR': [['Q1287334', 'P20', {'concept': 'Q56061'}], ['Q1597567', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1287334 property:P20 ?v } UNION { resource:Q1597567 property:P20 ?v } } . ?v rdf:type ontology:Q56061 }
Heinrich Held Imre Serényi
action filter_type
action union
action find
entity Imre Serényi
relation place of death
action find
entity Heinrich Held
relation place of death
type administrative territorial entity
{'OR': [['Imre Serényi', 'place of death', {'concept': 'administrative territorial entity'}], ['Heinrich Held', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Imre_Serényi property:place_of_death ?v } UNION { resource:Heinrich_Held property:place_of_death ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q393 Q1781
SYSTEM
Szczecin, Budapest
Q393 Q1781
OR((Q1287334,P20,c(Q56061)), (Q1597567,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1287334
relation P20
action find
entity Q1597567
relation P20
type Q56061
[ANSWERS]
{'OR': [['Q1287334', 'P20', {'concept': 'Q56061'}], ['Q1597567', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1287334 property:P20 ?v } UNION { resource:Q1597567 property:P20 ?v } } . ?v rdf:type ontology:Q56061 }
Szczecin Budapest
Szczecin Budapest
action filter_type
action union
action find
entity Imre Serényi
relation place of death
action find
entity Heinrich Held
relation place of death
type administrative territorial entity
{'OR': [['Imre Serényi', 'place of death', {'concept': 'administrative territorial entity'}], ['Heinrich Held', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Imre_Serényi property:place_of_death ?v } UNION { resource:Heinrich_Held property:place_of_death ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1597567
P21
Q290
USER
Which sex does Heinrich Held possess ?
(Q393,P21,c(Q290)) (Q1781,P21,c(Q290))
action filter_type
action find
entity Q1597567
relation P21
type Q290
['Q393', 'P21', {'concept': 'Q290'}] ['Q1781', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q1597567 property:P21 ?h . ?h rdf:type ontology:Q290 }
Heinrich Held
action filter_type
action find
entity Heinrich Held
relation gender
type sex
['Szczecin', 'gender', {'concept': 'sex'}] ['Budapest', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Heinrich_Held property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q393,P21,c(Q290)) (Q1781,P21,c(Q290))
action filter_type
action find
entity Q1597567
relation P21
type Q290
[ANSWER]
['Q393', 'P21', {'concept': 'Q290'}] ['Q1781', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q1597567 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Heinrich Held
relation gender
type sex
['Szczecin', 'gender', {'concept': 'sex'}] ['Budapest', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Heinrich_Held property:gender ?h . ?h rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q21130166
P1923
Q1194951 Q13406554 Q15275719
USER
Which national sports teams contested in around the same number of sport competitions and recurring events as Luxembourg national quidditch team ?
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action approx
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 Q21130166
relation P1923
type Q13406554
type Q15275719
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?f = ?v ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:P1923 resource:Q21130166 . { { ?h rdf:type ontology:Q13406554 } UNION { ?h rdf:type ontology:Q15275719 } } } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?f ) WHERE { { ?z property:P1923 ?b . ?z rdf:type ontology:Q13406554 . ?b rdf:type ontology:Q1194951 } UNION { ?b rdf:type ontology:Q1194951 . ?z rdf:type ontology:Q15275719 . ?z property:P1923 ?b } } GROUP BY ?b } }
Luxembourg national quidditch team
action approx
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 Luxembourg national quidditch team
relation participating teams
type sport competition
type recurring event
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?f = ?v ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:participating_teams resource:Luxembourg_national_quidditch_team . { { ?h rdf:type ontology:sport_competition } UNION { ?h rdf:type ontology:recurring_event } } } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?f ) WHERE { { ?z property:participating_teams ?b . ?z rdf:type ontology:sport_competition . ?b rdf:type ontology:national_sports_team } UNION { ?b rdf:type ontology:national_sports_team . ?z rdf:type ontology:recurring_event . ?z property:participating_teams ?b } } GROUP BY ?b } }
[]
national sports team sport competition recurring event
Q131785 Q184387 Q184602
SYSTEM
Denmark national football team, Norway national football team, Iran national football team
Q170327 Q130582 Q212166 Q207441 Q189322 Q174512 Q21130178 Q193386 Q172014 Q223748 Q180187 Q188228 Q21130160 Q236014 Q21130162 Q21130165 Q21130166 Q21130168 Q235910 Q987584 Q1131732 Q192828 Q270080 Q182740 Q27971 Q170403 Q170566 Q268208 Q175315 Q214151 Q186262 Q194387 Q191406 Q172221 Q175145 Q191595 Q21130170 Q181903 Q152424 Q207337 Q181190 Q186243 Q131785 Q184387 Q235399 Q483856 Q189198 Q28089 Q236006 Q721418 Q184602 Q192149 Q14132 Q2535606 Q21130157 Q21130156 Q483868 Q181930 Q208635 Q189723 Q206828 Q134925
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action approx
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 Q21130166
relation P1923
type Q13406554
type Q15275719
[ANSWERS]
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?f = ?v ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:P1923 resource:Q21130166 . { { ?h rdf:type ontology:Q13406554 } UNION { ?h rdf:type ontology:Q15275719 } } } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?f ) WHERE { { ?z property:P1923 ?b . ?z rdf:type ontology:Q13406554 . ?b rdf:type ontology:Q1194951 } UNION { ?b rdf:type ontology:Q1194951 . ?z rdf:type ontology:Q15275719 . ?z property:P1923 ?b } } GROUP BY ?b } }
South Africa national football team China PR national football team Peru national football team Senegal national football team Latvia national football team Slovakia national football team Transylvania national quidditch team Bolivia national football team Ghana national football team Panama national football team Honduras national football team El Salvador national football team England national quidditch team Cuba national football team Wales national quidditch team Scotland national quidditch team Luxembourg national quidditch team Uganda national quidditch team United Arab Emirates national football team Ecuador national football team Serbia and Montenegro national football team Angola national football team Congo DR national football team Serbia national football team Tunisia national football team Ukraine national football team Japan national football team Australia national association football team New Zealand national football team Venezuela national football team Albania national football team Costa Rica national football team Israel national football team Slovenia national football team Ivory Coast national football team Togo national football team Peru national quidditch team Algeria national football team East Germany national football team Morocco national football team Bosnia and Herzegovina national football team Iraq national football team Denmark national football team Norway national football team Jamaica national football team Turkey national football team Iceland national football team Egypt national football team Haiti national football team CIS national football team Iran national football team Trinidad and Tobago national football team North Korea national football team Dutch East Indies national football team Bulgaria national quidditch team Ireland national quidditch team Czech Republic national football team Nigeria national football team Canada national soccer team Saudi Arabia national football team Kuwait national football team Greece national football team
Denmark national football team Norway national football team Iran national football team
action approx
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 Luxembourg national quidditch team
relation participating teams
type sport competition
type recurring event
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?f = ?v ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:participating_teams resource:Luxembourg_national_quidditch_team . { { ?h rdf:type ontology:sport_competition } UNION { ?h rdf:type ontology:recurring_event } } } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?f ) WHERE { { ?z property:participating_teams ?b . ?z rdf:type ontology:sport_competition . ?b rdf:type ontology:national_sports_team } UNION { ?b rdf:type ontology:national_sports_team . ?z rdf:type ontology:recurring_event . ?z property:participating_teams ?b } } GROUP BY ?b } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q181903
P1923
Q1194951 Q13406554 Q15275719
USER
And what about Algeria national football team?
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action approx
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 Q181903
relation P1923
type Q13406554
type Q15275719
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) ?u WHERE { { ?w property:P1923 ?u . ?u rdf:type ontology:Q1194951 . ?w rdf:type ontology:Q13406554 } UNION { ?w property:P1923 ?u . ?u rdf:type ontology:Q1194951 . ?w rdf:type ontology:Q15275719 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P1923 resource:Q181903 . { ?n rdf:type ?q . VALUES ( ?q ) { ( ontology:Q13406554 ) ( ontology:Q15275719 ) } } } } . FILTER ( ?r = ?a ) }
Algeria national football team
action approx
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 Algeria 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 ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) ?u WHERE { { ?w property:participating_teams ?u . ?u rdf:type ontology:national_sports_team . ?w rdf:type ontology:sport_competition } UNION { ?w property:participating_teams ?u . ?u rdf:type ontology:national_sports_team . ?w rdf:type ontology:recurring_event } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:participating_teams resource:Algeria_national_football_team . { ?n rdf:type ?q . VALUES ( ?q ) { ( ontology:sport_competition ) ( ontology:recurring_event ) } } } } . FILTER ( ?r = ?a ) }
[]
national sports team sport competition recurring event
Q543842 Q188363 Q34044
SYSTEM
South Korea national football team, Yugoslavia national football team, Scotland national football team
Q170327 Q130582 Q212166 Q207441 Q189322 Q34044 Q174512 Q21130178 Q193386 Q172014 Q223748 Q180187 Q188228 Q190978 Q21130160 Q212564 Q236014 Q180845 Q21130162 Q21130165 Q21130166 Q21130168 Q235910 Q987584 Q1131732 Q192828 Q270080 Q182740 Q180857 Q543842 Q726080 Q27971 Q170403 Q172020 Q170566 Q268208 Q175315 Q214151 Q186262 Q194387 Q191406 Q172221 Q175145 Q134479 Q191595 Q21130170 Q181903 Q189275 Q175309 Q152424 Q207337 Q181190 Q188363 Q186243 Q131785 Q184387 Q235399 Q483856 Q189198 Q28089 Q163547 Q236006 Q721418 Q182072 Q184602 Q192149 Q14132 Q2535606 Q21130157 Q21130156 Q483868 Q181930 Q208635 Q189723 Q206828 Q134925
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action approx
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 Q181903
relation P1923
type Q13406554
type Q15275719
[ANSWERS]
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) ?u WHERE { { ?w property:P1923 ?u . ?u rdf:type ontology:Q1194951 . ?w rdf:type ontology:Q13406554 } UNION { ?w property:P1923 ?u . ?u rdf:type ontology:Q1194951 . ?w rdf:type ontology:Q15275719 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P1923 resource:Q181903 . { ?n rdf:type ?q . VALUES ( ?q ) { ( ontology:Q13406554 ) ( ontology:Q15275719 ) } } } } . FILTER ( ?r = ?a ) }
South Africa national football team China PR national football team Peru national football team Senegal national football team Latvia national football team Scotland national football team Slovakia national football team Transylvania national quidditch team Bolivia national football team Ghana national football team Panama national football team Honduras national football team El Salvador national football team Northern Ireland national football team England national quidditch team Colombia national football team Cuba national football team Bulgaria national football team Wales national quidditch team Scotland national quidditch team Luxembourg national quidditch team Uganda national quidditch team United Arab Emirates national football team Ecuador national football team Serbia and Montenegro national football team Angola national football team Congo DR national football team Serbia national football team Wales national football team South Korea national football team Russia national football team Tunisia national football team Ukraine national football team Paraguay national football team Japan national football team Australia national association football team New Zealand national football team Venezuela national football team Albania national football team Costa Rica national football team Israel national football team Slovenia national football team Ivory Coast national football team Croatia national football team Togo national football team Peru national quidditch team Algeria national football team Soviet Union national football team Cameroon national football team East Germany national football team Morocco national football team Bosnia and Herzegovina national football team Yugoslavia national football team Iraq national football team Denmark national football team Norway national football team Jamaica national football team Turkey national football team Iceland national football team Egypt national football team Republic of Ireland national football team Haiti national football team CIS national football team Czechoslovakia national football team Iran national football team Trinidad and Tobago national football team North Korea national football team Dutch East Indies national football team Bulgaria national quidditch team Ireland national quidditch team Czech Republic national football team Nigeria national football team Canada national soccer team Saudi Arabia national football team Kuwait national football team Greece national football team
South Korea national football team Yugoslavia national football team Scotland national football team
action approx
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 Algeria 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 ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) ?u WHERE { { ?w property:participating_teams ?u . ?u rdf:type ontology:national_sports_team . ?w rdf:type ontology:sport_competition } UNION { ?w property:participating_teams ?u . ?u rdf:type ontology:national_sports_team . ?w rdf:type ontology:recurring_event } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:participating_teams resource:Algeria_national_football_team . { ?n rdf:type ?q . VALUES ( ?q ) { ( ontology:sport_competition ) ( ontology:recurring_event ) } } } } . FILTER ( ?r = ?a ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16337719 Q937857
P425 P641
Q349
USER
Which sports have association football player as the associated field of occupation or were Júnior Timbó a part of ?
OR((Q937857,P425,c(Q349)), (Q16337719,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q16337719
relation P641
type Q349
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q16337719', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q937857 property:P425 ?b } UNION { resource:Q16337719 property:P641 ?b } } . ?b rdf:type ontology:Q349 }
Júnior Timbó association football player
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity Júnior Timbó
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Júnior Timbó', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?b WHERE { { { resource:association_football_player property:field_of_this_occupation ?b } UNION { resource:Júnior_Timbó property:sport ?b } } . ?b rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
OR((Q937857,P425,c(Q349)), (Q16337719,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q16337719
relation P641
type Q349
[ANSWER]
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q16337719', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q937857 property:P425 ?b } UNION { resource:Q16337719 property:P641 ?b } } . ?b rdf:type ontology:Q349 }
association football
association football
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity Júnior Timbó
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Júnior Timbó', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?b WHERE { { { resource:association_football_player property:field_of_this_occupation ?b } UNION { resource:Júnior_Timbó property:sport ?b } } . ?b rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2736
P921
Q15416 Q201658
USER
How many television programs or film genres are association football a main subject of ?
(c(Q15416),P921,Q2736) (c(Q201658),P921,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P921
type Q15416
action filter_type
action find_reverse
entity Q2736
relation P921
type Q201658
[{'concept': 'Q15416'}, 'P921', 'Q2736'] [{'concept': 'Q201658'}, 'P921', 'Q2736']
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { ?u rdf:type ontology:Q201658 . ?u property:P921 resource:Q2736 } UNION { ?u property:P921 resource:Q2736 . ?u rdf:type ontology:Q15416 } }
association football
action count
action union
action filter_type
action find_reverse
entity association football
relation main subject
type television program
action filter_type
action find_reverse
entity association football
relation main subject
type film genre
[{'concept': 'television program'}, 'main subject', 'association football'] [{'concept': 'film genre'}, 'main subject', 'association football']
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { ?u rdf:type ontology:film_genre . ?u property:main_subject resource:association_football } UNION { ?u property:main_subject resource:association_football . ?u rdf:type ontology:television_program } }
[]
television program film genre
SYSTEM
23
Q17326629 Q1740812 Q3352588 Q1161659 Q17426152 Q7775956 Q524179 Q7796824 Q7775164 Q6946471 Q2585469 Q7734305 Q94048 Q7803264 Q581824 Q26430211 Q5222479 Q3079767 Q4881279 Q1167853 Q5763645 Q16959067 Q4660141
(c(Q15416),P921,Q2736) (c(Q201658),P921,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P921
type Q15416
action filter_type
action find_reverse
entity Q2736
relation P921
type Q201658
[ANSWER]
[{'concept': 'Q15416'}, 'P921', 'Q2736'] [{'concept': 'Q201658'}, 'P921', 'Q2736']
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { ?u rdf:type ontology:Q201658 . ?u property:P921 resource:Q2736 } UNION { ?u property:P921 resource:Q2736 . ?u rdf:type ontology:Q15416 } }
Trainer! Her Best Move One Goal The Firm An Impossible Job The World Cup: A Captain's Tale United Those Glory Glory Days The Winning Goal My Summer with Des We Are the Faithful The Fix Soccer Dog: The Movie Tim Cahill: The Unseen Journey Forza Bastia Offside Dare to Dream: The Story of the U.S. Women's Soccer Team Sport Goofy in Soccermania Being: Liverpool The Final Game Hillsborough United A Time for Champions
23
action count
action union
action filter_type
action find_reverse
entity association football
relation main subject
type television program
action filter_type
action find_reverse
entity association football
relation main subject
type film genre
[{'concept': 'television program'}, 'main subject', 'association football'] [{'concept': 'film genre'}, 'main subject', 'association football']
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { ?u rdf:type ontology:film_genre . ?u property:main_subject resource:association_football } UNION { ?u property:main_subject resource:association_football . ?u rdf:type ontology:television_program } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P1376
Q1162835
USER
Which districts of Hungary have Budapest as their county seat ?
(Q1781,P1376,c(Q1162835))
action filter_type
action find
entity Q1781
relation P1376
type Q1162835
['Q1781', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?o WHERE { resource:Q1781 property:P1376 ?o . ?o rdf:type ontology:Q1162835 }
Budapest
action filter_type
action find
entity Budapest
relation capital of
type district of Hungary
['Budapest', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?o WHERE { resource:Budapest property:capital_of ?o . ?o rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q1125982 Q850872 Q850912
SYSTEM
Central District, Buda District, Budakörnyék District
Q1125982 Q850872 Q850912
(Q1781,P1376,c(Q1162835))
action filter_type
action find
entity Q1781
relation P1376
type Q1162835
[ANSWERS]
['Q1781', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?o WHERE { resource:Q1781 property:P1376 ?o . ?o rdf:type ontology:Q1162835 }
Central District Buda District Budakörnyék District
Central District Buda District Budakörnyék District
action filter_type
action find
entity Budapest
relation capital of
type district of Hungary
['Budapest', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?o WHERE { resource:Budapest property:capital_of ?o . ?o rdf:type ontology:district_of_Hungary }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P190
Q486972
USER
Which human settlements are the sister cities of Budapest ?
(Q1781,P190,c(Q486972))
action filter_type
action find
entity Q1781
relation P190
type Q486972
['Q1781', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q486972 . resource:Q1781 property:P190 ?m }
Budapest
action filter_type
action find
entity Budapest
relation sister city
type human settlement
['Budapest', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:human_settlement . resource:Budapest property:sister_city ?m }
[]
human settlement
Q102317 Q31487
SYSTEM
Kielce, Kraków
Q102317 Q31487
(Q1781,P190,c(Q486972))
action filter_type
action find
entity Q1781
relation P190
type Q486972
[ANSWERS]
['Q1781', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q486972 . resource:Q1781 property:P190 ?m }
Kielce Kraków
Kielce Kraków
action filter_type
action find
entity Budapest
relation sister city
type human settlement
['Budapest', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:human_settlement . resource:Budapest property:sister_city ?m }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q529928
Q486972
USER
And how about Ilsenburg?
(Q529928,P190,c(Q486972))
action filter_type
action find
entity Q529928
relation P190
type Q486972
['Q529928', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q486972 . resource:Q529928 property:P190 ?y }
Ilsenburg
action filter_type
action find
entity Ilsenburg
relation sister city
type human settlement
['Ilsenburg', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:human_settlement . resource:Ilsenburg property:sister_city ?y }
[]
human settlement
Q882731
SYSTEM
Burglesum
Q882731
(Q529928,P190,c(Q486972))
action filter_type
action find
entity Q529928
relation P190
type Q486972
[ANSWER]
['Q529928', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q486972 . resource:Q529928 property:P190 ?y }
Burglesum
Burglesum
action filter_type
action find
entity Ilsenburg
relation sister city
type human settlement
['Ilsenburg', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:human_settlement . resource:Ilsenburg property:sister_city ?y }
[]