Simple Question (Direct)
Simple Question
Q3850416
P54
Q1194951
USER
Which national sports team is Marvin Phillip a member of ?
(Q3850416,P54,c(Q1194951))
action filter_type
action find
entity Q3850416
relation P54
type Q1194951
['Q3850416', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?z WHERE { resource:Q3850416 property:P54 ?z . ?z rdf:type ontology:Q1194951 }
Marvin Phillip
action filter_type
action find
entity Marvin Phillip
relation member of sports team
type national sports team
['Marvin Phillip', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?z WHERE { resource:Marvin_Phillip property:member_of_sports_team ?z . ?z rdf:type ontology:national_sports_team }
[]
national sports team
Q192149
SYSTEM
Trinidad and Tobago national football team
Q192149
(Q3850416,P54,c(Q1194951))
action filter_type
action find
entity Q3850416
relation P54
type Q1194951
The [ANSWER] is Marvin Phillip a member of
['Q3850416', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?z WHERE { resource:Q3850416 property:P54 ?z . ?z rdf:type ontology:Q1194951 }
Trinidad and Tobago national football team
The Trinidad and Tobago national football team is Marvin Phillip a member of
Trinidad and Tobago national football team
action filter_type
action find
entity Marvin Phillip
relation member of sports team
type national sports team
['Marvin Phillip', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?z WHERE { resource:Marvin_Phillip property:member_of_sports_team ?z . ?z rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3850416
P641
Q349
USER
Which sport was that person a part of ?
(Q192149,P641,c(Q349))
action filter_type
action find
entity Q3850416
relation P641
type Q349
['Q192149', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q3850416 property:P641 ?n . ?n rdf:type ontology:Q349 }
Marvin Phillip
action filter_type
action find
entity Marvin Phillip
relation sport
type sport
['Trinidad and Tobago national football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Marvin_Phillip property:sport ?n . ?n rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q192149,P641,c(Q349))
action filter_type
action find
entity Q3850416
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q192149', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q3850416 property:P641 ?n . ?n rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Marvin Phillip
relation sport
type sport
['Trinidad and Tobago national football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Marvin_Phillip property:sport ?n . ?n rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q159319 Q192149
P1344
Q15275719
USER
Which recurring events did Trinidad and Tobago national football team or Romaric participate in ?
OR((Q192149,P1344,c(Q15275719)), (Q159319,P1344,c(Q15275719)))
action filter_type
action union
action find
entity Q192149
relation P1344
action find
entity Q159319
relation P1344
type Q15275719
{'OR': [['Q192149', 'P1344', {'concept': 'Q15275719'}], ['Q159319', 'P1344', {'concept': 'Q15275719'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q192149 property:P1344 ?v } UNION { resource:Q159319 property:P1344 ?v } } . ?v rdf:type ontology:Q15275719 }
Romaric Trinidad and Tobago national football team
action filter_type
action union
action find
entity Trinidad and Tobago national football team
relation participant of
action find
entity Romaric
relation participant of
type recurring event
{'OR': [['Trinidad and Tobago national football team', 'participant of', {'concept': 'recurring event'}], ['Romaric', 'participant of', {'concept': 'recurring event'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Trinidad_and_Tobago_national_football_team property:participant_of ?v } UNION { resource:Romaric property:participant_of ?v } } . ?v rdf:type ontology:recurring_event }
[]
recurring event
Q176883 Q37285
SYSTEM
2010 FIFA World Cup, 2006 FIFA World Cup
Q176883 Q37285
OR((Q192149,P1344,c(Q15275719)), (Q159319,P1344,c(Q15275719)))
action filter_type
action union
action find
entity Q192149
relation P1344
action find
entity Q159319
relation P1344
type Q15275719
Trinidad and Tobago national football team or Romaric participated in [ANSWERS]
{'OR': [['Q192149', 'P1344', {'concept': 'Q15275719'}], ['Q159319', 'P1344', {'concept': 'Q15275719'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q192149 property:P1344 ?v } UNION { resource:Q159319 property:P1344 ?v } } . ?v rdf:type ontology:Q15275719 }
2010 FIFA World Cup 2006 FIFA World Cup
Trinidad and Tobago national football team or Romaric participated in 2010 FIFA World Cup and 2006 FIFA World Cup
2010 FIFA World Cup 2006 FIFA World Cup
action filter_type
action union
action find
entity Trinidad and Tobago national football team
relation participant of
action find
entity Romaric
relation participant of
type recurring event
{'OR': [['Trinidad and Tobago national football team', 'participant of', {'concept': 'recurring event'}], ['Romaric', 'participant of', {'concept': 'recurring event'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Trinidad_and_Tobago_national_football_team property:participant_of ?v } UNION { resource:Romaric property:participant_of ?v } } . ?v rdf:type ontology:recurring_event }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4857787 Q192149
P1532 P17
Q15617994
USER
Which administrative territories do Trinidad and Tobago national football team play for or are Baqerabad, Ilam located in ?
OR((Q192149,P1532,c(Q15617994)), (Q4857787,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q192149
relation P1532
action find
entity Q4857787
relation P17
type Q15617994
{'OR': [['Q192149', 'P1532', {'concept': 'Q15617994'}], ['Q4857787', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q4857787 property:P17 ?r } UNION { resource:Q192149 property:P1532 ?r } } }
Baqerabad, Ilam Trinidad and Tobago national football team
action filter_type
action union
action find
entity Trinidad and Tobago national football team
relation country for sport
action find
entity Baqerabad, Ilam
relation country
type designation for an administrative territorial entity
{'OR': [['Trinidad and Tobago national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Baqerabad, Ilam', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Baqerabad,_Ilam property:country ?r } UNION { resource:Trinidad_and_Tobago_national_football_team property:country_for_sport ?r } } }
[]
designation for an administrative territorial entity
Q754 Q794
SYSTEM
Trinidad and Tobago, Iran
Q754 Q794
OR((Q192149,P1532,c(Q15617994)), (Q4857787,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q192149
relation P1532
action find
entity Q4857787
relation P17
type Q15617994
[ANSWERS] Trinidad and Tobago national football team play for or are Baqerabad, Ilam located in
{'OR': [['Q192149', 'P1532', {'concept': 'Q15617994'}], ['Q4857787', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q4857787 property:P17 ?r } UNION { resource:Q192149 property:P1532 ?r } } }
Trinidad and Tobago Iran
Trinidad and Tobago and Iran Trinidad and Tobago national football team play for or are Baqerabad, Ilam located in
Trinidad and Tobago Iran
action filter_type
action union
action find
entity Trinidad and Tobago national football team
relation country for sport
action find
entity Baqerabad, Ilam
relation country
type designation for an administrative territorial entity
{'OR': [['Trinidad and Tobago national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Baqerabad, Ilam', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Baqerabad,_Ilam property:country ?r } UNION { resource:Trinidad_and_Tobago_national_football_team property:country_for_sport ?r } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q754 Q794
P1532
Q6979593
USER
Who represent those administrative territories ?
(c(Q6979593),P1532,Q754) (c(Q6979593),P1532,Q794)
action filter_type
action find_reverse
entity prev_answer
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q754'] [{'concept': 'Q6979593'}, 'P1532', 'Q794']
SELECT DISTINCT ?k WHERE { ?k property:P1532 ?l . ?k rdf:type ontology:Q6979593 . VALUES ( ?l ) { ( resource:Q754 ) ( resource:Q794 ) } }
Trinidad and Tobago Iran
action filter_type
action find_reverse
entity prev_answer
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Trinidad and Tobago'] [{'concept': 'national association football team'}, 'country for sport', 'Iran']
SELECT DISTINCT ?k WHERE { ?k property:country_for_sport ?l . ?k rdf:type ontology:national_association_football_team . VALUES ( ?l ) { ( resource:Trinidad_and_Tobago ) ( resource:Iran ) } }
[]
national association football team
Q1478411 Q1672395 Q23892309
SYSTEM
Trinidad and Tobago women's national football team, Iran women's national football team, Iran Olympic football team
Q1478411 Q1672395 Q23892309
(c(Q6979593),P1532,Q754) (c(Q6979593),P1532,Q794)
action filter_type
action find_reverse
entity prev_answer
relation P1532
type Q6979593
And [ANSWERS] represent those administrative territories
[{'concept': 'Q6979593'}, 'P1532', 'Q754'] [{'concept': 'Q6979593'}, 'P1532', 'Q794']
SELECT DISTINCT ?k WHERE { ?k property:P1532 ?l . ?k rdf:type ontology:Q6979593 . VALUES ( ?l ) { ( resource:Q754 ) ( resource:Q794 ) } }
Trinidad and Tobago women's national football team Iran women's national football team Iran Olympic football team
And Trinidad and Tobago women's national football team, Iran women's national football team and Iran Olympic football team represent those administrative territories
Trinidad and Tobago women's national football team Iran women's national football team Iran Olympic football team
action filter_type
action find_reverse
entity prev_answer
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Trinidad and Tobago'] [{'concept': 'national association football team'}, 'country for sport', 'Iran']
SELECT DISTINCT ?k WHERE { ?k property:country_for_sport ?l . ?k rdf:type ontology:national_association_football_team . VALUES ( ?l ) { ( resource:Trinidad_and_Tobago ) ( resource:Iran ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1478411 Q1672395 Q23892309
P641
Q349
USER
What sports were those national association football teams a part of ?
(Q1478411,P641,c(Q349)) (Q1672395,P641,c(Q349)) (Q23892309,P641,c(Q349))
action filter_type
action find
entity prev_answer
relation P641
type Q349
['Q1478411', 'P641', {'concept': 'Q349'}] ['Q1672395', 'P641', {'concept': 'Q349'}] ['Q23892309', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { ?s property:P641 ?h . VALUES ( ?s ) { ( resource:Q1478411 ) ( resource:Q1672395 ) ( resource:Q23892309 ) } . ?h rdf:type ontology:Q349 }
Trinidad and Tobago women's national football team Iran women's national football team Iran Olympic football team
action filter_type
action find
entity prev_answer
relation sport
type sport
["Trinidad and Tobago women's national football team", 'sport', {'concept': 'sport'}] ["Iran women's national football team", 'sport', {'concept': 'sport'}] ['Iran Olympic football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { ?s property:sport ?h . VALUES ( ?s ) { ( resource:Trinidad_and_Tobago_women's_national_football_team ) ( resource:Iran_women's_national_football_team ) ( resource:Iran_Olympic_football_team ) } . ?h rdf:type ontology:sport }
[]
sport
Q606060 Q606060 Q2736
SYSTEM
women's association football for 1st, 2nd, association football for 3rd
Q606060 Q606060 Q2736
(Q1478411,P641,c(Q349)) (Q1672395,P641,c(Q349)) (Q23892309,P641,c(Q349))
action filter_type
action find
entity prev_answer
relation P641
type Q349
[ANSWERS]
['Q1478411', 'P641', {'concept': 'Q349'}] ['Q1672395', 'P641', {'concept': 'Q349'}] ['Q23892309', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { ?s property:P641 ?h . VALUES ( ?s ) { ( resource:Q1478411 ) ( resource:Q1672395 ) ( resource:Q23892309 ) } . ?h rdf:type ontology:Q349 }
women's association football women's association football association football
Those national association football teams a part of were the women's association football, women's association football and association football
women's association football women's association football association football
action filter_type
action find
entity prev_answer
relation sport
type sport
["Trinidad and Tobago women's national football team", 'sport', {'concept': 'sport'}] ["Iran women's national football team", 'sport', {'concept': 'sport'}] ['Iran Olympic football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { ?s property:sport ?h . VALUES ( ?s ) { ( resource:Trinidad_and_Tobago_women's_national_football_team ) ( resource:Iran_women's_national_football_team ) ( resource:Iran_Olympic_football_team ) } . ?h rdf:type ontology:sport }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
Which territory is the country of origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?m WHERE { resource:Q2736 property:P495 ?m . ?m rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:association_football property:country_of_origin ?m . ?m rdf:type ontology:territorial_entity }
[]
territorial entity
Clarification for simple ques.
Q606060
SYSTEM
Did you mean women's association football ?
Q606060 Q606060 Q2736
(Q606060,P495,c(Q1496967)) (Q606060,P495,c(Q1496967)) (Q2736,P495,c(Q1496967))
[ANSWER]
['Q606060', 'P495', {'concept': 'Q1496967'}] ['Q606060', 'P495', {'concept': 'Q1496967'}] ['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?m WHERE { resource:Q2736 property:P495 ?m . ?m rdf:type ontology:Q1496967 }
women's association football women's association football association football
Did you mean women's association football ?
women's association football
["women's association football", 'country of origin', {'concept': 'territorial entity'}] ["women's association football", 'country of origin', {'concept': 'territorial entity'}] ['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:association_football property:country_of_origin ?m . ?m rdf:type ontology:territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant association football. Could you tell me the answer for that?
(Q2736,P495,c(Q1496967))
Q2736
['Q2736', 'P495', {'concept': 'Q1496967'}]
['association football', 'country of origin', {'concept': 'territorial entity'}]
[]
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
[ANSWER] is the country of origin of that sport
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?m WHERE { resource:Q2736 property:P495 ?m . ?m rdf:type ontology:Q1496967 }
England
England is the country of origin of that sport
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:association_football property:country_of_origin ?m . ?m rdf:type ontology:territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q21 Q145
P17
Q15617994
USER
Is England present in United Kingdom ?
(Q21,P17,Q145)
action is_in
entity Q145
action find
entity Q21
relation P17
['Q21', 'P17', 'Q145']
ASK WHERE { resource:Q21 property:P17 resource:Q145 }
England United Kingdom
action is_in
entity United Kingdom
action find
entity England
relation country
['England', 'country', 'United Kingdom']
ASK WHERE { resource:England property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q21,P17,Q145)
action is_in
entity Q145
action find
entity Q21
relation P17
[ANSWER]
['Q21', 'P17', 'Q145']
ASK WHERE { resource:Q21 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity England
relation country
['England', 'country', 'United Kingdom']
ASK WHERE { resource:England property:country resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q176883 Q1480535 Q134916
P1923
Q1194951
USER
Did Uruguay at the 2003 Pan American Games and Uruguay national football team participate in 2010 FIFA World Cup ?
(Q176883,P1923,Q1480535) (Q176883,P1923,Q134916)
action is_in
entity Q176883
action intersection
action find_reverse
entity Q1480535
relation P1923
action find_reverse
entity Q134916
relation P1923
['Q176883', 'P1923', 'Q1480535'] ['Q176883', 'P1923', 'Q134916']
ASK WHERE { resource:Q176883 property:P1923 resource:Q1480535 . resource:Q176883 property:P1923 resource:Q134916 }
2010 FIFA World Cup Uruguay at the 2003 Pan American Games Uruguay national football team
action is_in
entity 2010 FIFA World Cup
action intersection
action find_reverse
entity Uruguay at the 2003 Pan American Games
relation participating teams
action find_reverse
entity Uruguay national football team
relation participating teams
['2010 FIFA World Cup', 'participating teams', 'Uruguay at the 2003 Pan American Games'] ['2010 FIFA World Cup', 'participating teams', 'Uruguay national football team']
ASK WHERE { resource:2010_FIFA_World_Cup property:participating_teams resource:Uruguay_at_the_2003_Pan_American_Games . resource:2010_FIFA_World_Cup property:participating_teams resource:Uruguay_national_football_team }
[]
national sports team
SYSTEM
NO and YES respectively
(Q176883,P1923,Q1480535) (Q176883,P1923,Q134916)
action is_in
entity Q176883
action intersection
action find_reverse
entity Q1480535
relation P1923
action find_reverse
entity Q134916
relation P1923
[ANSWER]
['Q176883', 'P1923', 'Q1480535'] ['Q176883', 'P1923', 'Q134916']
ASK WHERE { resource:Q176883 property:P1923 resource:Q1480535 . resource:Q176883 property:P1923 resource:Q134916 }
NO and YES respectively
action is_in
entity 2010 FIFA World Cup
action intersection
action find_reverse
entity Uruguay at the 2003 Pan American Games
relation participating teams
action find_reverse
entity Uruguay national football team
relation participating teams
['2010 FIFA World Cup', 'participating teams', 'Uruguay at the 2003 Pan American Games'] ['2010 FIFA World Cup', 'participating teams', 'Uruguay national football team']
ASK WHERE { resource:2010_FIFA_World_Cup property:participating_teams resource:Uruguay_at_the_2003_Pan_American_Games . resource:2010_FIFA_World_Cup property:participating_teams resource:Uruguay_national_football_team }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1532
Q1048835 Q6979593
USER
Which political territories do max number of national association football teams represent ?
(c(Q6979593),P1532,Q25305)
action argmax
action find_reverse_tuple_counts
relation P1532
type Q1048835
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q25305']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?x ) { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?v ) WHERE { ?q rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q6979593 . ?l property:P1532 ?q } GROUP BY ?q } } . { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P1532 ?s . ?s rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q6979593 } GROUP BY ?s } . FILTER ( ?d = ?x ) }
action argmax
action find_reverse_tuple_counts
relation country for sport
type political territorial entity
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'British Virgin Islands']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?x ) { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?v ) WHERE { ?q rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:national_association_football_team . ?l property:country_for_sport ?q } GROUP BY ?q } } . { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:country_for_sport ?s . ?s rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:national_association_football_team } GROUP BY ?s } . FILTER ( ?d = ?x ) }
[]
political territorial entity national association football team
Q664 Q16 Q408
SYSTEM
New Zealand, Canada, Australia
Q664 Q16 Q408
(c(Q6979593),P1532,Q25305)
action argmax
action find_reverse_tuple_counts
relation P1532
type Q1048835
type Q6979593
Max number of national association football teams represent the [ANSWERS]
[{'concept': 'Q6979593'}, 'P1532', 'Q25305']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?x ) { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?v ) WHERE { ?q rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q6979593 . ?l property:P1532 ?q } GROUP BY ?q } } . { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P1532 ?s . ?s rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q6979593 } GROUP BY ?s } . FILTER ( ?d = ?x ) }
New Zealand Canada Australia
Max number of national association football teams represent the New Zealand, Canada and Australia
New Zealand Canada Australia
action argmax
action find_reverse_tuple_counts
relation country for sport
type political territorial entity
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'British Virgin Islands']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?x ) { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?v ) WHERE { ?q rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:national_association_football_team . ?l property:country_for_sport ?q } GROUP BY ?q } } . { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:country_for_sport ?s . ?s rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:national_association_football_team } GROUP BY ?s } . FILTER ( ?d = ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic relations with max number of political territories ?
(c(Q15617994),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?p ) { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?r ) WHERE { ?h property:P530 ?c . ?h rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?h } } . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?s ) WHERE { ?f property:P530 ?k . ?f rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?s = ?p ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?p ) { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?r ) WHERE { ?h property:diplomatic_relation ?c . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?h } } . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?s ) WHERE { ?f property:diplomatic_relation ?k . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?s = ?p ) }
[]
political territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
The [ANSWER] have diplomatic relations with max number of political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?p ) { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?r ) WHERE { ?h property:P530 ?c . ?h rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?h } } . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?s ) WHERE { ?f property:P530 ?k . ?f rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?s = ?p ) }
Georgia
The Georgia have diplomatic relations with max number of political territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?p ) { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?r ) WHERE { ?h property:diplomatic_relation ?c . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?h } } . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?s ) WHERE { ?f property:diplomatic_relation ?k . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?s = ?p ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q230 Q35 Q16732
P530
Q1048835
USER
Does that administrative territory have tactful political relations with Denmark and Sant Mateu de Bages ?
(Q230,P530,Q35) (Q230,P530,Q16732)
action is_in
entity Q230
action intersection
action find_reverse
entity Q35
relation P530
action find_reverse
entity Q16732
relation P530
['Q230', 'P530', 'Q35'] ['Q230', 'P530', 'Q16732']
ASK WHERE { resource:Q230 property:P530 resource:Q35 . resource:Q230 property:P530 resource:Q16732 }
Georgia Denmark Sant Mateu de Bages
action is_in
entity Georgia
action intersection
action find_reverse
entity Denmark
relation diplomatic relation
action find_reverse
entity Sant Mateu de Bages
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Denmark'] ['Georgia', 'diplomatic relation', 'Sant Mateu de Bages']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Denmark . resource:Georgia property:diplomatic_relation resource:Sant_Mateu_de_Bages }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q230,P530,Q35) (Q230,P530,Q16732)
action is_in
entity Q230
action intersection
action find_reverse
entity Q35
relation P530
action find_reverse
entity Q16732
relation P530
[ANSWER]
['Q230', 'P530', 'Q35'] ['Q230', 'P530', 'Q16732']
ASK WHERE { resource:Q230 property:P530 resource:Q35 . resource:Q230 property:P530 resource:Q16732 }
YES and NO respectively
action is_in
entity Georgia
action intersection
action find_reverse
entity Denmark
relation diplomatic relation
action find_reverse
entity Sant Mateu de Bages
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Denmark'] ['Georgia', 'diplomatic relation', 'Sant Mateu de Bages']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Denmark . resource:Georgia property:diplomatic_relation resource:Sant_Mateu_de_Bages }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q794 Q1766232
P530
Q1048835
USER
Does Tàrbena have diplomatic relationships with Iran ?
(Q794,P530,Q1766232)
action is_in
entity Q1766232
action find
entity Q794
relation P530
['Q794', 'P530', 'Q1766232']
ASK WHERE { resource:Q794 property:P530 resource:Q1766232 }
Iran Tàrbena
action is_in
entity Tàrbena
action find
entity Iran
relation diplomatic relation
['Iran', 'diplomatic relation', 'Tàrbena']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Tàrbena }
[]
political territorial entity
SYSTEM
NO
(Q794,P530,Q1766232)
action is_in
entity Q1766232
action find
entity Q794
relation P530
[ANSWER]
['Q794', 'P530', 'Q1766232']
ASK WHERE { resource:Q794 property:P530 resource:Q1766232 }
No
action is_in
entity Tàrbena
action find
entity Iran
relation diplomatic relation
['Iran', 'diplomatic relation', 'Tàrbena']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Tàrbena }
[]