Simple Question (Direct)
Simple Question
Q3168860
P106
Q12737077
USER
What does Jean-Philippe Revallier do for a living ?
(Q3168860,P106,c(Q12737077))
action filter_type
action find
entity Q3168860
relation P106
type Q12737077
['Q3168860', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q3168860 property:P106 ?h }
Jean-Philippe Revallier
action filter_type
action find
entity Jean-Philippe Revallier
relation occupation
type occupation
['Jean-Philippe Revallier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Jean-Philippe_Revallier property:occupation ?h }
[]
occupation
Q14089670
SYSTEM
rugby union player
Q14089670
(Q3168860,P106,c(Q12737077))
action filter_type
action find
entity Q3168860
relation P106
type Q12737077
Jean-Philippe Revallier does a [ANSWER] for a living
['Q3168860', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q3168860 property:P106 ?h }
rugby union player
Jean-Philippe Revallier does a rugby union player for a living
rugby union player
action filter_type
action find
entity Jean-Philippe Revallier
relation occupation
type occupation
['Jean-Philippe Revallier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Jean-Philippe_Revallier property:occupation ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3168860
P54
Q12973014
USER
Which sports teams are that person a member of ?
(Q14089670,P54,c(Q12973014))
action filter_type
action find
entity Q3168860
relation P54
type Q12973014
['Q14089670', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?x WHERE { resource:Q3168860 property:P54 ?x . ?x rdf:type ontology:Q12973014 }
Jean-Philippe Revallier
action filter_type
action find
entity Jean-Philippe Revallier
relation member of sports team
type sports team
['rugby union player', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?x WHERE { resource:Jean-Philippe_Revallier property:member_of_sports_team ?x . ?x rdf:type ontology:sports_team }
[]
sports team
Q2756860 Q1407380 Q1225303
SYSTEM
Sporting Club Graulhetois, US Colomiers, UA Gaillac
Q2756860 Q1407380 Q1225303
(Q14089670,P54,c(Q12973014))
action filter_type
action find
entity Q3168860
relation P54
type Q12973014
[ANSWERS] are that person a member of
['Q14089670', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?x WHERE { resource:Q3168860 property:P54 ?x . ?x rdf:type ontology:Q12973014 }
Sporting Club Graulhetois US Colomiers UA Gaillac
Sporting Club Graulhetois, US Colomiers and UA Gaillac are that person a member of
Sporting Club Graulhetois US Colomiers UA Gaillac
action filter_type
action find
entity Jean-Philippe Revallier
relation member of sports team
type sports team
['rugby union player', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?x WHERE { resource:Jean-Philippe_Revallier property:member_of_sports_team ?x . ?x rdf:type ontology:sports_team }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q129810 Q3168860
P54
Q12973014
USER
Or Kevin Volland?
OR((Q3168860,P54,c(Q12973014)), (Q129810,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q3168860
relation P54
action find
entity Q129810
relation P54
type Q12973014
{'OR': [['Q3168860', 'P54', {'concept': 'Q12973014'}], ['Q129810', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?i ) { ( resource:Q3168860 ) ( resource:Q129810 ) } . ?i property:P54 ?z } . ?z rdf:type ontology:Q12973014 }
Kevin Volland Jean-Philippe Revallier
action filter_type
action union
action find
entity Jean-Philippe Revallier
relation member of sports team
action find
entity Kevin Volland
relation member of sports team
type sports team
{'OR': [['Jean-Philippe Revallier', 'member of sports team', {'concept': 'sports team'}], ['Kevin Volland', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?i ) { ( resource:Jean-Philippe_Revallier ) ( resource:Kevin_Volland ) } . ?i property:member_of_sports_team ?z } . ?z rdf:type ontology:sports_team }
[]
sports team
Q314851 Q316497 Q1225303 Q2756860 Q2016992 Q1407380 Q319699 Q324854
SYSTEM
Germany national under-21 football team, Germany national under-20 football team, UA Gaillac, Sporting Club Graulhetois, Germany national under-18 football team, US Colomiers, Germany national under-17 football team, Germany national under-19 football team
Q314851 Q316497 Q1225303 Q2756860 Q2016992 Q1407380 Q319699 Q324854
OR((Q3168860,P54,c(Q12973014)), (Q129810,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q3168860
relation P54
action find
entity Q129810
relation P54
type Q12973014
[ANSWERS]
{'OR': [['Q3168860', 'P54', {'concept': 'Q12973014'}], ['Q129810', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?i ) { ( resource:Q3168860 ) ( resource:Q129810 ) } . ?i property:P54 ?z } . ?z rdf:type ontology:Q12973014 }
Germany national under-21 football team Germany national under-20 football team UA Gaillac Sporting Club Graulhetois Germany national under-18 football team US Colomiers Germany national under-17 football team Germany national under-19 football team
Germany national under-21 football team Germany national under-20 football team UA Gaillac Sporting Club Graulhetois Germany national under-18 football team US Colomiers Germany national under-17 football team Germany national under-19 football team
action filter_type
action union
action find
entity Jean-Philippe Revallier
relation member of sports team
action find
entity Kevin Volland
relation member of sports team
type sports team
{'OR': [['Jean-Philippe Revallier', 'member of sports team', {'concept': 'sports team'}], ['Kevin Volland', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?i ) { ( resource:Jean-Philippe_Revallier ) ( resource:Kevin_Volland ) } . ?i property:member_of_sports_team ?z } . ?z rdf:type ontology:sports_team }
[]
Clarification
Simple Question|Single Entity|Indirect
Q319699
P1532
Q1048835
USER
Which political territory is represented by that sports team ?
(Q319699,P1532,c(Q1048835))
action filter_type
action find
entity Q319699
relation P1532
type Q1048835
['Q319699', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q319699 property:P1532 ?k . ?k rdf:type ontology:Q1048835 }
Germany national under-17 football team
action filter_type
action find
entity Germany national under-17 football team
relation country for sport
type political territorial entity
['Germany national under-17 football team', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Germany_national_under-17_football_team property:country_for_sport ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q2756860
SYSTEM
Did you mean Sporting Club Graulhetois ?
Q314851 Q316497 Q1225303 Q2756860 Q2016992 Q1407380 Q319699 Q324854
(Q314851,P1532,c(Q1048835)) (Q316497,P1532,c(Q1048835)) (Q1225303,P1532,c(Q1048835)) (Q2756860,P1532,c(Q1048835)) (Q2016992,P1532,c(Q1048835)) (Q1407380,P1532,c(Q1048835)) (Q319699,P1532,c(Q1048835)) (Q324854,P1532,c(Q1048835))
[ANSWER]
['Q314851', 'P1532', {'concept': 'Q1048835'}] ['Q316497', 'P1532', {'concept': 'Q1048835'}] ['Q1225303', 'P1532', {'concept': 'Q1048835'}] ['Q2756860', 'P1532', {'concept': 'Q1048835'}] ['Q2016992', 'P1532', {'concept': 'Q1048835'}] ['Q1407380', 'P1532', {'concept': 'Q1048835'}] ['Q319699', 'P1532', {'concept': 'Q1048835'}] ['Q324854', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q319699 property:P1532 ?k . ?k rdf:type ontology:Q1048835 }
Germany national under-21 football team Germany national under-20 football team UA Gaillac Sporting Club Graulhetois Germany national under-18 football team US Colomiers Germany national under-17 football team Germany national under-19 football team
Did you mean Sporting Club Graulhetois ?
Sporting Club Graulhetois
['Germany national under-21 football team', 'country for sport', {'concept': 'political territorial entity'}] ['Germany national under-20 football team', 'country for sport', {'concept': 'political territorial entity'}] ['UA Gaillac', 'country for sport', {'concept': 'political territorial entity'}] ['Sporting Club Graulhetois', 'country for sport', {'concept': 'political territorial entity'}] ['Germany national under-18 football team', 'country for sport', {'concept': 'political territorial entity'}] ['US Colomiers', 'country for sport', {'concept': 'political territorial entity'}] ['Germany national under-17 football team', 'country for sport', {'concept': 'political territorial entity'}] ['Germany national under-19 football team', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Germany_national_under-17_football_team property:country_for_sport ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Germany national under-17 football team. Could you tell me the answer for that?
(Q319699,P1532,c(Q1048835))
Q319699
['Q319699', 'P1532', {'concept': 'Q1048835'}]
['Germany national under-17 football team', 'country for sport', {'concept': 'political territorial entity'}]
[]
Q183
SYSTEM
Germany
Q183
(Q319699,P1532,c(Q1048835))
action filter_type
action find
entity Q319699
relation P1532
type Q1048835
The [ANSWER] is represented by that sports team
['Q319699', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q319699 property:P1532 ?k . ?k rdf:type ontology:Q1048835 }
Germany
The Germany is represented by that sports team
Germany
action filter_type
action find
entity Germany national under-17 football team
relation country for sport
type political territorial entity
['Germany national under-17 football team', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Germany_national_under-17_football_team property:country_for_sport ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q18527156
P27
Q502895
USER
Is Clara Maria Pope a citizen of that political territory ?
(Q18527156,P27,Q183)
action is_in
entity Q18527156
action find
entity Q183
relation P27
['Q18527156', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q18527156 }
Germany Clara Maria Pope
action is_in
entity Clara Maria Pope
action find
entity Germany
relation country of citizenship
['Clara Maria Pope', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Clara_Maria_Pope }
[]
common name
SYSTEM
NO
(Q18527156,P27,Q183)
action is_in
entity Q18527156
action find
entity Q183
relation P27
[ANSWER]
['Q18527156', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q18527156 }
No
action is_in
entity Clara Maria Pope
action find
entity Germany
relation country of citizenship
['Clara Maria Pope', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Clara_Maria_Pope }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with approximately 1 political territory ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?k ) WHERE { ?y rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 . ?y property:P530 ?q } GROUP BY ?y } . FILTER ( ?k = 1 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?k ) WHERE { ?y rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?q } GROUP BY ?y } . FILTER ( ?k = 1 ) }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[ANSWERS] have diplomatic relationships with approximately 1 political territory
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?k ) WHERE { ?y rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 . ?y property:P530 ?q } GROUP BY ?y } . FILTER ( ?k = 1 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand have diplomatic relationships with approximately 1 political territory
Denmark Austria New Zealand
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?k ) WHERE { ?y rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?q } GROUP BY ?y } . FILTER ( ?k = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P127
Q1048835 Q83620 Q7743
USER
Which political territories owned exactly 1 thoroughfares and homes ?
(c(Q83620)|c(Q7743),P127,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q83620
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q7743
value 1
[[{'concept': 'Q83620'}, {'concept': 'Q7743'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?t WHERE { { ?t rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q83620 . ?m property:P127 ?t } UNION { ?t rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q7743 . ?m property:P127 ?t } } GROUP BY ?t } }
action equal
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type home
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'home'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?t WHERE { { ?t rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:thoroughfare . ?m property:owned_by ?t } UNION { ?t rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:home . ?m property:owned_by ?t } } GROUP BY ?t } }
[]
political territorial entity thoroughfare home
Q193317 Q191091 Q193307
SYSTEM
Pardubice Region, Karlovy Vary Region, Olomouc Region
Q192536 Q193317 Q191091 Q193307 Q206926
(c(Q83620)|c(Q7743),P127,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q83620
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q7743
value 1
[ANSWERS] owned exactly 1 thoroughfares and homes
[[{'concept': 'Q83620'}, {'concept': 'Q7743'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?t WHERE { { ?t rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q83620 . ?m property:P127 ?t } UNION { ?t rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q7743 . ?m property:P127 ?t } } GROUP BY ?t } }
Zlín Region Pardubice Region Karlovy Vary Region Olomouc Region North Ayrshire
Pardubice Region, Karlovy Vary Region and Olomouc Region owned exactly 1 thoroughfares and homes
Pardubice Region Karlovy Vary Region Olomouc Region
action equal
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type home
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'home'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?t WHERE { { ?t rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:thoroughfare . ?m property:owned_by ?t } UNION { ?t rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:home . ?m property:owned_by ?t } } GROUP BY ?t } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q159
P530
Q1048835
USER
How many political territories holds diplomatic relationship with Germany and Russia ?
(Q183,P530,c(Q1048835)) (Q159,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q183
relation P530
type Q1048835
action filter_type
action find
entity Q159
relation P530
type Q1048835
['Q183', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ontology:Q1048835 . resource:Q183 property:P530 ?l . resource:Q159 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Germany Russia
action count
action intersection
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Russia
relation diplomatic relation
type political territorial entity
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Germany property:diplomatic_relation ?l . resource:Russia property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q16
(Q183,P530,c(Q1048835)) (Q159,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q183
relation P530
type Q1048835
action filter_type
action find
entity Q159
relation P530
type Q1048835
[ANSWER]
['Q183', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ontology:Q1048835 . resource:Q183 property:P530 ?l . resource:Q159 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Australia Canada
2
action count
action intersection
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Russia
relation diplomatic relation
type political territorial entity
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Germany property:diplomatic_relation ?l . resource:Russia property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories are known to have diplomatic connections 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 ?z WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?j ) WHERE { ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 . ?n property:P530 ?x } GROUP BY ?n } } . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?l ) WHERE { ?z rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 . ?z property:P530 ?k } GROUP BY ?z } . FILTER ( ?l = ?m ) }
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 ?z WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?j ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation ?x } GROUP BY ?n } } . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?l ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?k } GROUP BY ?z } . FILTER ( ?l = ?m ) }
[]
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
[ANSWER] is known to have diplomatic connections with max number of political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?j ) WHERE { ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 . ?n property:P530 ?x } GROUP BY ?n } } . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?l ) WHERE { ?z rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 . ?z property:P530 ?k } GROUP BY ?z } . FILTER ( ?l = ?m ) }
Georgia
Georgia is known to have diplomatic connections 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 ?z WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?j ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation ?x } GROUP BY ?n } } . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?l ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?k } GROUP BY ?z } . FILTER ( ?l = ?m ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q230
P47
Q183366
USER
Which territory does that administrative territory share a border with ?
(c(Q183366),P47,Q230)
action filter_type
action find_reverse
entity Q230
relation P47
type Q183366
[{'concept': 'Q183366'}, 'P47', 'Q230']
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q230 . ?t rdf:type ontology:Q183366 }
Georgia
action filter_type
action find_reverse
entity Georgia
relation shares border with
type territory
[{'concept': 'territory'}, 'shares border with', 'Georgia']
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Georgia . ?t rdf:type ontology:territory }
[]
territory
Q23334
SYSTEM
Abkhazia
Q23334
(c(Q183366),P47,Q230)
action filter_type
action find_reverse
entity Q230
relation P47
type Q183366
That administrative territory shares a border with the [ANSWER]
[{'concept': 'Q183366'}, 'P47', 'Q230']
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q230 . ?t rdf:type ontology:Q183366 }
Abkhazia
That administrative territory shares a border with the Abkhazia
Abkhazia
action filter_type
action find_reverse
entity Georgia
relation shares border with
type territory
[{'concept': 'territory'}, 'shares border with', 'Georgia']
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Georgia . ?t rdf:type ontology:territory }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q230
P17
Q15617994
USER
Which administrative territory is that one present in ?
(Q23334,P17,c(Q15617994))
action filter_type
action find
entity Q230
relation P17
type Q15617994
['Q23334', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q230 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Georgia
action filter_type
action find
entity Georgia
relation country
type designation for an administrative territorial entity
['Abkhazia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Georgia property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(Q23334,P17,c(Q15617994))
action filter_type
action find
entity Q230
relation P17
type Q15617994
That one is the [ANSWER]
['Q23334', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q230 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Georgia
That one is the Georgia
Georgia
action filter_type
action find
entity Georgia
relation country
type designation for an administrative territorial entity
['Abkhazia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Georgia property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q230 Q503123
P530
Q15617994
USER
Does Tapfheim have diplomatic relationships with that one ?
(Q230,P530,Q503123)
action is_in
entity Q503123
action find
entity Q230
relation P530
['Q230', 'P530', 'Q503123']
ASK WHERE { resource:Q230 property:P530 resource:Q503123 }
Georgia Tapfheim
action is_in
entity Tapfheim
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Tapfheim']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Tapfheim }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q230,P530,Q503123)
action is_in
entity Q503123
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q503123']
ASK WHERE { resource:Q230 property:P530 resource:Q503123 }
No
action is_in
entity Tapfheim
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Tapfheim']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Tapfheim }
[]