Simple Question (Direct)
Simple Question
Q4701208
P54
Q1194951
USER
What is Akis Agiomamitis a member of ?
(Q4701208,P54,c(Q1194951))
action filter_type
action find
entity Q4701208
relation P54
type Q1194951
['Q4701208', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?r WHERE { resource:Q4701208 property:P54 ?r . ?r rdf:type ontology:Q1194951 }
Akis Agiomamitis
action filter_type
action find
entity Akis Agiomamitis
relation member of sports team
type national sports team
['Akis Agiomamitis', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?r WHERE { resource:Akis_Agiomamitis property:member_of_sports_team ?r . ?r rdf:type ontology:national_sports_team }
[]
national sports team
Q188791
SYSTEM
Cyprus national football team
Q188791
(Q4701208,P54,c(Q1194951))
action filter_type
action find
entity Q4701208
relation P54
type Q1194951
Akis Agiomamitis a member of is the [ANSWER]
['Q4701208', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?r WHERE { resource:Q4701208 property:P54 ?r . ?r rdf:type ontology:Q1194951 }
Cyprus national football team
Akis Agiomamitis a member of is the Cyprus national football team
Cyprus national football team
action filter_type
action find
entity Akis Agiomamitis
relation member of sports team
type national sports team
['Akis Agiomamitis', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?r WHERE { resource:Akis_Agiomamitis property:member_of_sports_team ?r . ?r rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4701208
P106
Q12737077
USER
What are the professions of Akis Agiomamitis ?
(Q4701208,P106,c(Q12737077))
action filter_type
action find
entity Q4701208
relation P106
type Q12737077
['Q4701208', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q4701208 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Akis Agiomamitis
action filter_type
action find
entity Akis Agiomamitis
relation occupation
type occupation
['Akis Agiomamitis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Akis_Agiomamitis property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q4701208,P106,c(Q12737077))
action filter_type
action find
entity Q4701208
relation P106
type Q12737077
The professions of Akis Agiomamitis are the [ANSWERS]
['Q4701208', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q4701208 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
association football manager association football player
The professions of Akis Agiomamitis are the association football manager and association football player
association football manager association football player
action filter_type
action find
entity Akis Agiomamitis
relation occupation
type occupation
['Akis Agiomamitis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Akis_Agiomamitis property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11947688
Q12737077
USER
And how about Santiago Tejera y Ossavarry?
(Q11947688,P106,c(Q12737077))
action filter_type
action find
entity Q11947688
relation P106
type Q12737077
['Q11947688', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q11947688 property:P106 ?h }
Santiago Tejera y Ossavarry
action filter_type
action find
entity Santiago Tejera y Ossavarry
relation occupation
type occupation
['Santiago Tejera y Ossavarry', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Santiago_Tejera_y_Ossavarry property:occupation ?h }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q11947688,P106,c(Q12737077))
action filter_type
action find
entity Q11947688
relation P106
type Q12737077
[ANSWER]
['Q11947688', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q11947688 property:P106 ?h }
composer
composer
action filter_type
action find
entity Santiago Tejera y Ossavarry
relation occupation
type occupation
['Santiago Tejera y Ossavarry', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Santiago_Tejera_y_Ossavarry property:occupation ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q267245
P1344
Q15275719
USER
What recurring events did Portugal national football team participate in ?
(Q267245,P1344,c(Q15275719))
action filter_type
action find
entity Q267245
relation P1344
type Q15275719
['Q267245', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?p WHERE { resource:Q267245 property:P1344 ?p . ?p rdf:type ontology:Q15275719 }
Portugal national football team
action filter_type
action find
entity Portugal national football team
relation participant of
type recurring event
['Portugal national football team', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?p WHERE { resource:Portugal_national_football_team property:participant_of ?p . ?p rdf:type ontology:recurring_event }
[]
recurring event
Q47735 Q79859 Q37285
SYSTEM
2002 FIFA World Cup, 2014 FIFA World Cup, 2006 FIFA World Cup
Q176883 Q37285 Q134202 Q47735 Q46938 Q79859
(Q267245,P1344,c(Q15275719))
action filter_type
action find
entity Q267245
relation P1344
type Q15275719
Portugal national football team participated in [ANSWERS]
['Q267245', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?p WHERE { resource:Q267245 property:P1344 ?p . ?p rdf:type ontology:Q15275719 }
2010 FIFA World Cup 2006 FIFA World Cup 1966 FIFA World Cup 2002 FIFA World Cup 1986 FIFA World Cup 2014 FIFA World Cup
Portugal national football team participated in 2002 FIFA World Cup, 2014 FIFA World Cup and 2006 FIFA World Cup
2002 FIFA World Cup 2014 FIFA World Cup 2006 FIFA World Cup
action filter_type
action find
entity Portugal national football team
relation participant of
type recurring event
['Portugal national football team', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?p WHERE { resource:Portugal_national_football_team property:participant_of ?p . ?p rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q47735 Q79859 Q37285
P1923
Q1194951
USER
Which national sports teams were participants in those recurring events ?
(Q47735,P1923,c(Q1194951)) (Q79859,P1923,c(Q1194951)) (Q37285,P1923,c(Q1194951))
action filter_type
action find
entity prev_answer
relation P1923
type Q1194951
['Q47735', 'P1923', {'concept': 'Q1194951'}] ['Q79859', 'P1923', {'concept': 'Q1194951'}] ['Q37285', 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?j WHERE { ?q property:P1923 ?j . VALUES ( ?q ) { ( resource:Q176883 ) ( resource:Q37285 ) ( resource:Q134202 ) } . ?j rdf:type ontology:Q1194951 }
2002 FIFA World Cup 2014 FIFA World Cup 2006 FIFA World Cup
action filter_type
action find
entity prev_answer
relation participating teams
type national sports team
['2002 FIFA World Cup', 'participating teams', {'concept': 'national sports team'}] ['2014 FIFA World Cup', 'participating teams', {'concept': 'national sports team'}] ['2006 FIFA World Cup', 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ?j WHERE { ?q property:participating_teams ?j . VALUES ( ?q ) { ( resource:2010_FIFA_World_Cup ) ( resource:2006_FIFA_World_Cup ) ( resource:1966_FIFA_World_Cup ) } . ?j rdf:type ontology:national_sports_team }
[]
national sports team
Q166196 Q166196 Q43310
SYSTEM
Germany national football team for 3rd, Poland national football team for 1st, 2nd
Q170327 Q130582 Q134479 Q267245 Q163547 Q42267 Q166776 Q207441 Q47762 Q160826 Q166196 Q83459 Q175309 Q164134 Q79800 Q543842 Q726080 Q27971 Q181930 Q134916 Q172020 Q170566 Q164089 Q131785 Q43310 Q676899 Q189723 Q194387 Q987584 Q172221 Q483856 Q47774 Q175145 Q134479 Q267245 Q47050 Q184602 Q42267 Q166776 Q181903 Q47762 Q164134 Q83459 Q175309 Q172014 Q181190 Q180187 Q79800 Q164089 Q726080 Q212564 Q181930 Q268208 Q172025 Q170566 Q134916 Q43310 Q676899 Q543842 Q165141 Q194387 Q987584 Q134925 Q47774 Q175145 Q134479 Q191595 Q267245 Q1131732 Q47050 Q42267 Q184602 Q192149 Q164134 Q166196 Q83459 Q192828 Q172014 Q160826 Q483868 Q79800 Q164089 Q47762 Q27971 Q170403 Q268208 Q172020 Q170566 Q543842 Q43310 Q676899 Q189723 Q194387 Q987584 Q165141 Q47774
(Q47735,P1923,c(Q1194951)) (Q79859,P1923,c(Q1194951)) (Q37285,P1923,c(Q1194951))
action filter_type
action find
entity prev_answer
relation P1923
type Q1194951
[ANSWERS]
['Q47735', 'P1923', {'concept': 'Q1194951'}] ['Q79859', 'P1923', {'concept': 'Q1194951'}] ['Q37285', 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?j WHERE { ?q property:P1923 ?j . VALUES ( ?q ) { ( resource:Q176883 ) ( resource:Q37285 ) ( resource:Q134202 ) } . ?j rdf:type ontology:Q1194951 }
South Africa national football team China PR national football team Croatia national football team Portugal national football team Republic of Ireland national football team Spain national football team Belgium national football team Senegal national football team England national football team Sweden national football team Poland national football team Brazil national football team Cameroon national football team United States men's national soccer team Argentina national football team South Korea national football team Russia national football team Tunisia national football team Nigeria national football team Uruguay national football team Paraguay national football team Japan national football team Mexico national football team Denmark national football team Germany national football team Italy national football team Saudi Arabia national football team Costa Rica national football team Ecuador national football team Slovenia national football team Turkey national football team France national football team Ivory Coast national football team Croatia national football team Portugal national football team Netherlands national football team Iran national football team Spain national football team Belgium national football team Algeria national football team England national football team United States men's national soccer team Brazil national football team Cameroon national football team Ghana national football team Bosnia and Herzegovina national football team Honduras national football team Argentina national football team Mexico national football team Russia national football team Colombia national football team Nigeria national football team Australia national association football team Chile national football team Japan national football team Uruguay national football team Germany national football team Italy national football team South Korea national football team Swiss national football team Costa Rica national football team Ecuador national football team Greece national football team France national football team Ivory Coast national football team Croatia national football team Togo national football team Portugal national football team Serbia and Montenegro national football team Netherlands national football team Spain national football team Iran national football team Trinidad and Tobago national football team United States men's national soccer team Poland national football team Brazil national football team Angola national football team Ghana national football team Sweden national football team Czech Republic national football team Argentina national football team Mexico national football team England national football team Tunisia national football team Ukraine national football team Australia national association football team Paraguay national football team Japan national football team South Korea national football team Germany national football team Italy national football team Saudi Arabia national football team Costa Rica national football team Ecuador national football team Swiss national football team France national football team
Poland national football team, Poland national football team and Germany national football team were participants in those recurring events
Poland national football team Poland national football team Germany national football team
action filter_type
action find
entity prev_answer
relation participating teams
type national sports team
['2002 FIFA World Cup', 'participating teams', {'concept': 'national sports team'}] ['2014 FIFA World Cup', 'participating teams', {'concept': 'national sports team'}] ['2006 FIFA World Cup', 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ?j WHERE { ?q property:participating_teams ?j . VALUES ( ?q ) { ( resource:2010_FIFA_World_Cup ) ( resource:2006_FIFA_World_Cup ) ( resource:1966_FIFA_World_Cup ) } . ?j rdf:type ontology:national_sports_team }
[]
Clarification
Simple Question|Single Entity|Indirect
Q166196
P1346
Q13406554
USER
Which sport competitions were won by that national sports team ?
(c(Q13406554),P1346,Q166196)
action filter_type
action find_reverse
entity Q166196
relation P1346
type Q13406554
[{'concept': 'Q13406554'}, 'P1346', 'Q166196']
SELECT DISTINCT ?x WHERE { ?x property:P1346 resource:Q166196 . ?x rdf:type ontology:Q13406554 }
Poland national football team
action filter_type
action find_reverse
entity Poland national football team
relation winner
type sport competition
[{'concept': 'sport competition'}, 'winner', 'Poland national football team']
SELECT DISTINCT ?x WHERE { ?x property:winner resource:Poland_national_football_team . ?x rdf:type ontology:sport_competition }
[]
sport competition
Clarification for simple ques.
Q43310
SYSTEM
Did you mean Germany national football team ?
Q166196 Q166196 Q43310
(c(Q13406554),P1346,Q166196) (c(Q13406554),P1346,Q166196) (c(Q13406554),P1346,Q43310)
[ANSWER]
[{'concept': 'Q13406554'}, 'P1346', 'Q166196'] [{'concept': 'Q13406554'}, 'P1346', 'Q166196'] [{'concept': 'Q13406554'}, 'P1346', 'Q43310']
SELECT DISTINCT ?x WHERE { ?x property:P1346 resource:Q166196 . ?x rdf:type ontology:Q13406554 }
Poland national football team Poland national football team Germany national football team
Did you mean Germany national football team ?
Germany national football team
[{'concept': 'sport competition'}, 'winner', 'Poland national football team'] [{'concept': 'sport competition'}, 'winner', 'Poland national football team'] [{'concept': 'sport competition'}, 'winner', 'Germany national football team']
SELECT DISTINCT ?x WHERE { ?x property:winner resource:Poland_national_football_team . ?x rdf:type ontology:sport_competition }
[]
Simple Question (Coreferenced)
USER
No, I meant Poland national football team. Could you tell me the answer for that?
(c(Q13406554),P1346,Q166196)
Q166196
[{'concept': 'Q13406554'}, 'P1346', 'Q166196']
[{'concept': 'sport competition'}, 'winner', 'Poland national football team']
[]
Q24202121 Q24201934 Q24201905
SYSTEM
Switzerland v Poland, Ukraine v Poland, Poland v Northern Ireland
Q24202121 Q24201934 Q24201905
(c(Q13406554),P1346,Q166196)
action filter_type
action find_reverse
entity Q166196
relation P1346
type Q13406554
[ANSWERS] were won by that national sports team
[{'concept': 'Q13406554'}, 'P1346', 'Q166196']
SELECT DISTINCT ?x WHERE { ?x property:P1346 resource:Q166196 . ?x rdf:type ontology:Q13406554 }
Switzerland v Poland Ukraine v Poland Poland v Northern Ireland
Switzerland v Poland, Ukraine v Poland and Poland v Northern Ireland were won by that national sports team
Switzerland v Poland Ukraine v Poland Poland v Northern Ireland
action filter_type
action find_reverse
entity Poland national football team
relation winner
type sport competition
[{'concept': 'sport competition'}, 'winner', 'Poland national football team']
SELECT DISTINCT ?x WHERE { ?x property:winner resource:Poland_national_football_team . ?x rdf:type ontology:sport_competition }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q24202121 Q24201934 Q24201905
P641
Q349
USER
What sports were those sport competitions a part of ?
(Q24202121,P641,c(Q349)) (Q24201934,P641,c(Q349)) (Q24201905,P641,c(Q349))
action filter_type
action find
entity prev_answer
relation P641
type Q349
['Q24202121', 'P641', {'concept': 'Q349'}] ['Q24201934', 'P641', {'concept': 'Q349'}] ['Q24201905', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q349 . VALUES ( ?m ) { ( resource:Q24202121 ) ( resource:Q24201934 ) ( resource:Q24201905 ) } . ?m property:P641 ?q }
Switzerland v Poland Ukraine v Poland Poland v Northern Ireland
action filter_type
action find
entity prev_answer
relation sport
type sport
['Switzerland v Poland', 'sport', {'concept': 'sport'}] ['Ukraine v Poland', 'sport', {'concept': 'sport'}] ['Poland v Northern Ireland', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sport . VALUES ( ?m ) { ( resource:Switzerland_v_Poland ) ( resource:Ukraine_v_Poland ) ( resource:Poland_v_Northern_Ireland ) } . ?m property:sport ?q }
[]
sport
Q2736 Q2736 Q2736
SYSTEM
association football
Q2736 Q2736 Q2736
(Q24202121,P641,c(Q349)) (Q24201934,P641,c(Q349)) (Q24201905,P641,c(Q349))
action filter_type
action find
entity prev_answer
relation P641
type Q349
[ANSWER], [ANSWER] and [ANSWER] those sport competitions a part of
['Q24202121', 'P641', {'concept': 'Q349'}] ['Q24201934', 'P641', {'concept': 'Q349'}] ['Q24201905', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q349 . VALUES ( ?m ) { ( resource:Q24202121 ) ( resource:Q24201934 ) ( resource:Q24201905 ) } . ?m property:P641 ?q }
association football association football association football
Association football, association football and association football those sport competitions a part of
association football association football association football
action filter_type
action find
entity prev_answer
relation sport
type sport
['Switzerland v Poland', 'sport', {'concept': 'sport'}] ['Ukraine v Poland', 'sport', {'concept': 'sport'}] ['Poland v Northern Ireland', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sport . VALUES ( ?m ) { ( resource:Switzerland_v_Poland ) ( resource:Ukraine_v_Poland ) ( resource:Poland_v_Northern_Ireland ) } . ?m property:sport ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q24202121
P276
Q1076486
USER
Which sports venue is the location of Switzerland v Poland ?
(Q24202121,P276,c(Q1076486))
action filter_type
action find
entity Q24202121
relation P276
type Q1076486
['Q24202121', 'P276', {'concept': 'Q1076486'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1076486 . resource:Q24202121 property:P276 ?d }
Switzerland v Poland
action filter_type
action find
entity Switzerland v Poland
relation location
type sports venue
['Switzerland v Poland', 'location', {'concept': 'sports venue'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sports_venue . resource:Switzerland_v_Poland property:location ?d }
[]
sports venue
Q861000
SYSTEM
Stade Geoffroy-Guichard
Q861000
(Q24202121,P276,c(Q1076486))
action filter_type
action find
entity Q24202121
relation P276
type Q1076486
[ANSWER] is the location of Switzerland v Poland
['Q24202121', 'P276', {'concept': 'Q1076486'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1076486 . resource:Q24202121 property:P276 ?d }
Stade Geoffroy-Guichard
Stade Geoffroy-Guichard is the location of Switzerland v Poland
Stade Geoffroy-Guichard
action filter_type
action find
entity Switzerland v Poland
relation location
type sports venue
['Switzerland v Poland', 'location', {'concept': 'sports venue'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sports_venue . resource:Switzerland_v_Poland property:location ?d }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q861000 Q142 Q490801
P17
Q15617994
USER
Is that sports venue present in France and Santa Flavia ?
(Q861000,P17,Q142) (Q861000,P17,Q490801)
action is_in
entity Q861000
action intersection
action find_reverse
entity Q142
relation P17
action find_reverse
entity Q490801
relation P17
['Q861000', 'P17', 'Q142'] ['Q861000', 'P17', 'Q490801']
ASK WHERE { resource:Q861000 property:P17 resource:Q142 . resource:Q861000 property:P17 resource:Q490801 }
Stade Geoffroy-Guichard France Santa Flavia
action is_in
entity Stade Geoffroy-Guichard
action intersection
action find_reverse
entity France
relation country
action find_reverse
entity Santa Flavia
relation country
['Stade Geoffroy-Guichard', 'country', 'France'] ['Stade Geoffroy-Guichard', 'country', 'Santa Flavia']
ASK WHERE { resource:Stade_Geoffroy-Guichard property:country resource:France . resource:Stade_Geoffroy-Guichard property:country resource:Santa_Flavia }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q861000,P17,Q142) (Q861000,P17,Q490801)
action is_in
entity Q861000
action intersection
action find_reverse
entity Q142
relation P17
action find_reverse
entity Q490801
relation P17
[ANSWER]
['Q861000', 'P17', 'Q142'] ['Q861000', 'P17', 'Q490801']
ASK WHERE { resource:Q861000 property:P17 resource:Q142 . resource:Q861000 property:P17 resource:Q490801 }
YES and NO respectively
action is_in
entity Stade Geoffroy-Guichard
action intersection
action find_reverse
entity France
relation country
action find_reverse
entity Santa Flavia
relation country
['Stade Geoffroy-Guichard', 'country', 'France'] ['Stade Geoffroy-Guichard', 'country', 'Santa Flavia']
ASK WHERE { resource:Stade_Geoffroy-Guichard property:country resource:France . resource:Stade_Geoffroy-Guichard property:country resource:Santa_Flavia }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q861000
P127
Q20667921
USER
Which french administrative division owned that sports venue ?
action filter_type
action find
entity Q861000
relation P127
type Q20667921
SELECT DISTINCT ?e WHERE { resource:Q861000 property:P127 ?e . ?e rdf:type ontology:Q20667921 }
Stade Geoffroy-Guichard
action filter_type
action find
entity Stade Geoffroy-Guichard
relation owned by
type type of french administrative division
SELECT DISTINCT ?e WHERE { resource:Stade_Geoffroy-Guichard property:owned_by ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q42716
SYSTEM
Saint-Étienne
Q42716
action filter_type
action find
entity Q861000
relation P127
type Q20667921
[ANSWER] owned that sports venue
SELECT DISTINCT ?e WHERE { resource:Q861000 property:P127 ?e . ?e rdf:type ontology:Q20667921 }
Saint-Étienne
Saint-Étienne owned that sports venue
Saint-Étienne
action filter_type
action find
entity Stade Geoffroy-Guichard
relation owned by
type type of french administrative division
SELECT DISTINCT ?e WHERE { resource:Stade_Geoffroy-Guichard property:owned_by ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q42716 Q178067
P190
Q56061
USER
Is Toamasina twin city of that french administrative division ?
(Q42716,P190,Q178067)
action is_in
entity Q178067
action find
entity Q42716
relation P190
['Q42716', 'P190', 'Q178067']
ASK WHERE { resource:Q42716 property:P190 resource:Q178067 }
Saint-Étienne Toamasina
action is_in
entity Toamasina
action find
entity Saint-Étienne
relation sister city
['Saint-Étienne', 'sister city', 'Toamasina']
ASK WHERE { resource:Saint-Étienne property:sister_city resource:Toamasina }
[]
administrative territorial entity
SYSTEM
YES
(Q42716,P190,Q178067)
action is_in
entity Q178067
action find
entity Q42716
relation P190
[ANSWER]
['Q42716', 'P190', 'Q178067']
ASK WHERE { resource:Q42716 property:P190 resource:Q178067 }
Yes
action is_in
entity Toamasina
action find
entity Saint-Étienne
relation sister city
['Saint-Étienne', 'sister city', 'Toamasina']
ASK WHERE { resource:Saint-Étienne property:sister_city resource:Toamasina }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q14168
P1376
Q20667921 Q515
USER
How many cities are the capital of greater number of french administrative divisions than Pontianak ?
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q14168
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { ?o rdf:type ontology:Q515 . resource:Q14168 property:P1376 ?o } } . FILTER ( ?z > ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?z ) WHERE { ?p property:P1376 ?c . ?p rdf:type ontology:Q515 . ?c rdf:type ontology:Q20667921 } GROUP BY ?p } }
Pontianak
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Pontianak
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { ?o rdf:type ontology:city . resource:Pontianak property:capital_of ?o } } . FILTER ( ?z > ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?z ) WHERE { ?p property:capital_of ?c . ?p rdf:type ontology:city . ?c rdf:type ontology:type_of_french_administrative_division } GROUP BY ?p } }
[]
type of french administrative division city
SYSTEM
5
Q23482 Q6602 Q6582 Q456 Q7003
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q14168
relation P1376
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { ?o rdf:type ontology:Q515 . resource:Q14168 property:P1376 ?o } } . FILTER ( ?z > ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?z ) WHERE { ?p property:P1376 ?c . ?p rdf:type ontology:Q515 . ?c rdf:type ontology:Q20667921 } GROUP BY ?p } }
Marseille Strasbourg Carcassonne Lyon Dijon
5
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Pontianak
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { ?o rdf:type ontology:city . resource:Pontianak property:capital_of ?o } } . FILTER ( ?z > ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?z ) WHERE { ?p property:capital_of ?c . ?p rdf:type ontology:city . ?c rdf:type ontology:type_of_french_administrative_division } GROUP BY ?p } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q843021
P1376
Q20667921 Q515
USER
And also tell me about Tolna?
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q843021
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?k ) WHERE { ?q rdf:type ontology:Q515 . ?p rdf:type ontology:Q20667921 . ?q property:P1376 ?p } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ontology:Q515 . resource:Q843021 property:P1376 ?e } } . FILTER ( ?k > ?j ) }
Tolna
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Tolna
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?k ) WHERE { ?q rdf:type ontology:city . ?p rdf:type ontology:type_of_french_administrative_division . ?q property:capital_of ?p } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ontology:city . resource:Tolna property:capital_of ?e } } . FILTER ( ?k > ?j ) }
[]
type of french administrative division city
SYSTEM
5
Q23482 Q6602 Q6582 Q456 Q7003
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q843021
relation P1376
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?k ) WHERE { ?q rdf:type ontology:Q515 . ?p rdf:type ontology:Q20667921 . ?q property:P1376 ?p } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ontology:Q515 . resource:Q843021 property:P1376 ?e } } . FILTER ( ?k > ?j ) }
Marseille Strasbourg Carcassonne Lyon Dijon
5
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Tolna
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?k ) WHERE { ?q rdf:type ontology:city . ?p rdf:type ontology:type_of_french_administrative_division . ?q property:capital_of ?p } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ontology:city . resource:Tolna property:capital_of ?e } } . FILTER ( ?k > ?j ) }
[]