Simple Question (Direct)
Simple Question
Q580482
P20
Q15617994
USER
Where did the expiration of Benedetto Gennari occur ?
(Q580482,P20,c(Q15617994))
action filter_type
action find
entity Q580482
relation P20
type Q15617994
['Q580482', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q580482 property:P20 ?g . ?g rdf:type ontology:Q15617994 }
Benedetto Gennari
action filter_type
action find
entity Benedetto Gennari
relation place of death
type designation for an administrative territorial entity
['Benedetto Gennari', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Benedetto_Gennari property:place_of_death ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q95094
SYSTEM
Cento
Q95094
(Q580482,P20,c(Q15617994))
action filter_type
action find
entity Q580482
relation P20
type Q15617994
The expiration of Benedetto Gennari occurred in [ANSWER]
['Q580482', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q580482 property:P20 ?g . ?g rdf:type ontology:Q15617994 }
Cento
The expiration of Benedetto Gennari occurred in Cento
Cento
action filter_type
action find
entity Benedetto Gennari
relation place of death
type designation for an administrative territorial entity
['Benedetto Gennari', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Benedetto_Gennari property:place_of_death ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q95094
P190
Q1048835
USER
Which political territory is twin city of that administrative territory ?
(Q95094,P190,c(Q1048835))
action filter_type
action find
entity Q95094
relation P190
type Q1048835
['Q95094', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . resource:Q95094 property:P190 ?c }
Cento
action filter_type
action find
entity Cento
relation sister city
type political territorial entity
['Cento', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Cento property:sister_city ?c }
[]
political territorial entity
Q2099330
SYSTEM
Vicente López Partido
Q2099330
(Q95094,P190,c(Q1048835))
action filter_type
action find
entity Q95094
relation P190
type Q1048835
[ANSWER] is twin city of that administrative territory
['Q95094', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . resource:Q95094 property:P190 ?c }
Vicente López Partido
Vicente López Partido is twin city of that administrative territory
Vicente López Partido
action filter_type
action find
entity Cento
relation sister city
type political territorial entity
['Cento', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Cento property:sister_city ?c }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2099330 Q7142162 Q5826711
P36
Q56061
USER
Is Pasir Pelangi and Shilan, Gilan the capital of Q2099330 ?
(Q2099330,P36,Q7142162) (Q2099330,P36,Q5826711)
action is_in
entity Q2099330
action intersection
action find_reverse
entity Q7142162
relation P36
action find_reverse
entity Q5826711
relation P36
['Q2099330', 'P36', 'Q7142162'] ['Q2099330', 'P36', 'Q5826711']
ASK WHERE { resource:Q2099330 property:P36 resource:Q7142162 . resource:Q2099330 property:P36 resource:Q5826711 }
Vicente López Partido Pasir Pelangi Shilan, Gilan
action is_in
entity Vicente López Partido
action intersection
action find_reverse
entity Pasir Pelangi
relation capital
action find_reverse
entity Shilan, Gilan
relation capital
['Vicente López Partido', 'capital', 'Pasir Pelangi'] ['Vicente López Partido', 'capital', 'Shilan, Gilan']
ASK WHERE { resource:Vicente_López_Partido property:capital resource:Pasir_Pelangi . resource:Vicente_López_Partido property:capital resource:Shilan,_Gilan }
[]
administrative territorial entity
SYSTEM
NO
(Q2099330,P36,Q7142162) (Q2099330,P36,Q5826711)
action is_in
entity Q2099330
action intersection
action find_reverse
entity Q7142162
relation P36
action find_reverse
entity Q5826711
relation P36
[ANSWER]
['Q2099330', 'P36', 'Q7142162'] ['Q2099330', 'P36', 'Q5826711']
ASK WHERE { resource:Q2099330 property:P36 resource:Q7142162 . resource:Q2099330 property:P36 resource:Q5826711 }
No
action is_in
entity Vicente López Partido
action intersection
action find_reverse
entity Pasir Pelangi
relation capital
action find_reverse
entity Shilan, Gilan
relation capital
['Vicente López Partido', 'capital', 'Pasir Pelangi'] ['Vicente López Partido', 'capital', 'Shilan, Gilan']
ASK WHERE { resource:Vicente_López_Partido property:capital resource:Pasir_Pelangi . resource:Vicente_López_Partido property:capital resource:Shilan,_Gilan }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q95094 Q4259592
P47
Q56061
USER
Does Lisne share the border with Cento ?
(Q95094,P47,Q4259592)
action is_in
entity Q4259592
action find
entity Q95094
relation P47
['Q95094', 'P47', 'Q4259592']
ASK WHERE { resource:Q95094 property:P47 resource:Q4259592 }
Cento Lisne
action is_in
entity Lisne
action find
entity Cento
relation shares border with
['Cento', 'shares border with', 'Lisne']
ASK WHERE { resource:Cento property:shares_border_with resource:Lisne }
[]
administrative territorial entity
SYSTEM
NO
(Q95094,P47,Q4259592)
action is_in
entity Q4259592
action find
entity Q95094
relation P47
[ANSWER]
['Q95094', 'P47', 'Q4259592']
ASK WHERE { resource:Q95094 property:P47 resource:Q4259592 }
No
action is_in
entity Lisne
action find
entity Cento
relation shares border with
['Cento', 'shares border with', 'Lisne']
ASK WHERE { resource:Cento property:shares_border_with resource:Lisne }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have a diplomatic relationship with approximately 4 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?r ) WHERE { ?z property:P530 ?y . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?r = 4 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?r ) WHERE { ?z property:diplomatic_relation ?y . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?r = 4 ) }
[]
political territorial entity political territorial entity
SYSTEM
5
Q40 Q183 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?r ) WHERE { ?z property:P530 ?y . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?r = 4 ) }
Austria Germany Denmark Canada New Zealand
5
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?r ) WHERE { ?z property:diplomatic_relation ?y . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?r = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5862493 Q7142162
P17
Q15617994
USER
Which administrative territories are Pasir Pelangi or Cheshmeh Qanat-e Junak a part of ?
OR((Q7142162,P17,c(Q15617994)), (Q5862493,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7142162
relation P17
action find
entity Q5862493
relation P17
type Q15617994
{'OR': [['Q7142162', 'P17', {'concept': 'Q15617994'}], ['Q5862493', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q7142162 property:P17 ?r } UNION { resource:Q5862493 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Cheshmeh Qanat-e Junak Pasir Pelangi
action filter_type
action union
action find
entity Pasir Pelangi
relation country
action find
entity Cheshmeh Qanat-e Junak
relation country
type designation for an administrative territorial entity
{'OR': [['Pasir Pelangi', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Cheshmeh Qanat-e Junak', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Pasir_Pelangi property:country ?r } UNION { resource:Cheshmeh_Qanat-e_Junak property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q833 Q794
SYSTEM
Malaysia, Iran
Q833 Q794
OR((Q7142162,P17,c(Q15617994)), (Q5862493,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7142162
relation P17
action find
entity Q5862493
relation P17
type Q15617994
[ANSWERS] are Pasir Pelangi or Cheshmeh Qanat-e Junak a part of
{'OR': [['Q7142162', 'P17', {'concept': 'Q15617994'}], ['Q5862493', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q7142162 property:P17 ?r } UNION { resource:Q5862493 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Malaysia Iran
Malaysia and Iran are Pasir Pelangi or Cheshmeh Qanat-e Junak a part of
Malaysia Iran
action filter_type
action union
action find
entity Pasir Pelangi
relation country
action find
entity Cheshmeh Qanat-e Junak
relation country
type designation for an administrative territorial entity
{'OR': [['Pasir Pelangi', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Cheshmeh Qanat-e Junak', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Pasir_Pelangi property:country ?r } UNION { resource:Cheshmeh_Qanat-e_Junak property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?p property:P530 ?y . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?w = ?g ) . { SELECT DISTINCT ( MAX ( ?x ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?x ) WHERE { ?j property:P530 ?h . ?j rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?j } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?p property:diplomatic_relation ?y . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?w = ?g ) . { SELECT DISTINCT ( MAX ( ?x ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?x ) WHERE { ?j property:diplomatic_relation ?h . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have tactful political relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?p property:P530 ?y . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?w = ?g ) . { SELECT DISTINCT ( MAX ( ?x ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?x ) WHERE { ?j property:P530 ?h . ?j rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?j } } }
Georgia
Georgia have tactful political relations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?p property:diplomatic_relation ?y . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?w = ?g ) . { SELECT DISTINCT ( MAX ( ?x ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?x ) WHERE { ?j property:diplomatic_relation ?h . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } }
[]