Simple Question (Direct)
Simple Question
Q3745320
P21
Q290
USER
Which sex does Filippo Scelzo have ?
(Q3745320,P21,c(Q290))
action filter_type
action find
entity Q3745320
relation P21
type Q290
['Q3745320', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3745320 property:P21 ?r . ?r rdf:type ontology:Q290 }
Filippo Scelzo
action filter_type
action find
entity Filippo Scelzo
relation gender
type sex
['Filippo Scelzo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Filippo_Scelzo property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3745320,P21,c(Q290))
action filter_type
action find
entity Q3745320
relation P21
type Q290
Filippo Scelzo has a [ANSWER]
['Q3745320', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3745320 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Filippo Scelzo has a male
male
action filter_type
action find
entity Filippo Scelzo
relation gender
type sex
['Filippo Scelzo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Filippo_Scelzo property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3745320
P27
Q7275
USER
Which state is Filippo Scelzo a civilian of ?
(Q3745320,P27,c(Q7275))
action filter_type
action find
entity Q3745320
relation P27
type Q7275
['Q3745320', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q3745320 property:P27 ?r . ?r rdf:type ontology:Q7275 }
Filippo Scelzo
action filter_type
action find
entity Filippo Scelzo
relation country of citizenship
type state
['Filippo Scelzo', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Filippo_Scelzo property:country_of_citizenship ?r . ?r rdf:type ontology:state }
[]
state
Q172579
SYSTEM
Kingdom of Italy
Q172579
(Q3745320,P27,c(Q7275))
action filter_type
action find
entity Q3745320
relation P27
type Q7275
Which state is Filippo Scelzo a civilian of
['Q3745320', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q3745320 property:P27 ?r . ?r rdf:type ontology:Q7275 }
Kingdom of Italy
Which state is Filippo Scelzo a civilian of
Kingdom of Italy
action filter_type
action find
entity Filippo Scelzo
relation country of citizenship
type state
['Filippo Scelzo', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Filippo_Scelzo property:country_of_citizenship ?r . ?r rdf:type ontology:state }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q3745320
Q15617994
USER
And which administrative territory?
(Q3745320,P27,c(Q15617994))
action filter_type
action find
entity Q3745320
relation P27
type Q15617994
['Q3745320', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q3745320 property:P27 ?t }
Filippo Scelzo
action filter_type
action find
entity Filippo Scelzo
relation country of citizenship
type designation for an administrative territorial entity
['Filippo Scelzo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Filippo_Scelzo property:country_of_citizenship ?t }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3745320,P27,c(Q15617994))
action filter_type
action find
entity Q3745320
relation P27
type Q15617994
[ANSWER]
['Q3745320', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q3745320 property:P27 ?t }
Italy
Italy
action filter_type
action find
entity Filippo Scelzo
relation country of citizenship
type designation for an administrative territorial entity
['Filippo Scelzo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Filippo_Scelzo property:country_of_citizenship ?t }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q38 Q625074 Q564983
P530
Q15617994
USER
Does that administrative territory have diplomatic associations with Neißemünde and Dankerath ?
(Q38,P530,Q625074) (Q38,P530,Q564983)
action is_in
entity Q38
action intersection
action find_reverse
entity Q625074
relation P530
action find_reverse
entity Q564983
relation P530
['Q38', 'P530', 'Q625074'] ['Q38', 'P530', 'Q564983']
ASK WHERE { resource:Q38 property:P530 resource:Q625074 . resource:Q38 property:P530 resource:Q564983 }
Italy Neißemünde Dankerath
action is_in
entity Italy
action intersection
action find_reverse
entity Neißemünde
relation diplomatic relation
action find_reverse
entity Dankerath
relation diplomatic relation
['Italy', 'diplomatic relation', 'Neißemünde'] ['Italy', 'diplomatic relation', 'Dankerath']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Neißemünde . resource:Italy property:diplomatic_relation resource:Dankerath }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q38,P530,Q625074) (Q38,P530,Q564983)
action is_in
entity Q38
action intersection
action find_reverse
entity Q625074
relation P530
action find_reverse
entity Q564983
relation P530
[ANSWER]
['Q38', 'P530', 'Q625074'] ['Q38', 'P530', 'Q564983']
ASK WHERE { resource:Q38 property:P530 resource:Q625074 . resource:Q38 property:P530 resource:Q564983 }
No
action is_in
entity Italy
action intersection
action find_reverse
entity Neißemünde
relation diplomatic relation
action find_reverse
entity Dankerath
relation diplomatic relation
['Italy', 'diplomatic relation', 'Neißemünde'] ['Italy', 'diplomatic relation', 'Dankerath']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Neißemünde . resource:Italy property:diplomatic_relation resource:Dankerath }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q172579 Q15192813
P36
Q56061
USER
Is Atheha, India the capital of Kingdom of Italy ?
(Q172579,P36,Q15192813)
action is_in
entity Q15192813
action find
entity Q172579
relation P36
['Q172579', 'P36', 'Q15192813']
ASK WHERE { resource:Q172579 property:P36 resource:Q15192813 }
Kingdom of Italy Atheha, India
action is_in
entity Atheha, India
action find
entity Kingdom of Italy
relation capital
['Kingdom of Italy', 'capital', 'Atheha, India']
ASK WHERE { resource:Kingdom_of_Italy property:capital resource:Atheha,_India }
[]
administrative territorial entity
SYSTEM
NO
(Q172579,P36,Q15192813)
action is_in
entity Q15192813
action find
entity Q172579
relation P36
[ANSWER]
['Q172579', 'P36', 'Q15192813']
ASK WHERE { resource:Q172579 property:P36 resource:Q15192813 }
No
action is_in
entity Atheha, India
action find
entity Kingdom of Italy
relation capital
['Kingdom of Italy', 'capital', 'Atheha, India']
ASK WHERE { resource:Kingdom_of_Italy property:capital resource:Atheha,_India }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q9093202 Q38
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with Italy and do Vicent Miguel Carceller belong to ?
AND((Q38,P530,c(Q15617994)), (Q9093202,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q9093202
relation P27
type Q15617994
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q9093202', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q38 property:P530 ?o . resource:Q9093202 property:P27 ?o }
Vicent Miguel Carceller Italy
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Vicent Miguel Carceller
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Vicent Miguel Carceller', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Italy property:diplomatic_relation ?o . resource:Vicent_Miguel_Carceller property:country_of_citizenship ?o }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
AND((Q38,P530,c(Q15617994)), (Q9093202,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q9093202
relation P27
type Q15617994
[ANSWER] holds diplomatic relationship with Italy and do Vicent Miguel Carceller belong to
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q9093202', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q38 property:P530 ?o . resource:Q9093202 property:P27 ?o }
Spain
Spain holds diplomatic relationship with Italy and do Vicent Miguel Carceller belong to
Spain
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Vicent Miguel Carceller
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Vicent Miguel Carceller', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Italy property:diplomatic_relation ?o . resource:Vicent_Miguel_Carceller property:country_of_citizenship ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q29 Q5228481
P27
Q502895
USER
Is Dave Campos a native of that administrative territory ?
(Q5228481,P27,Q29)
action is_in
entity Q5228481
action find
entity Q29
relation P27
['Q5228481', 'P27', 'Q29']
ASK WHERE { resource:Q29 property:P27 resource:Q5228481 }
Spain Dave Campos
action is_in
entity Dave Campos
action find
entity Spain
relation country of citizenship
['Dave Campos', 'country of citizenship', 'Spain']
ASK WHERE { resource:Spain property:country_of_citizenship resource:Dave_Campos }
[]
common name
SYSTEM
NO
(Q5228481,P27,Q29)
action is_in
entity Q5228481
action find
entity Q29
relation P27
[ANSWER]
['Q5228481', 'P27', 'Q29']
ASK WHERE { resource:Q29 property:P27 resource:Q5228481 }
No
action is_in
entity Dave Campos
action find
entity Spain
relation country of citizenship
['Dave Campos', 'country of citizenship', 'Spain']
ASK WHERE { resource:Spain property:country_of_citizenship resource:Dave_Campos }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with atmost 12 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 12
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { FILTER ( ?q <= 12 ) . { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?q ) WHERE { ?j property:P530 ?b . ?j rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?j } }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { FILTER ( ?q <= 12 ) . { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?q ) WHERE { ?j property:diplomatic_relation ?b . ?j rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 12
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { FILTER ( ?q <= 12 ) . { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?q ) WHERE { ?j property:P530 ?b . ?j rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?j } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { FILTER ( ?q <= 12 ) . { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?q ) WHERE { ?j property:diplomatic_relation ?b . ?j rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q29 Q31
P530
Q1048835
USER
How many political territories have diplomatic relations with Spain and Belgium ?
(c(Q1048835),P530,Q29) (c(Q1048835),P530,Q31)
action count
action intersection
action filter_type
action find_reverse
entity Q29
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q31
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q29'] [{'concept': 'Q1048835'}, 'P530', 'Q31']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:Q1048835 . ?b property:P530 resource:Q29 . ?b property:P530 resource:Q31 . ?b rdf:type ontology:Q1048835 }
Spain Belgium
action count
action intersection
action filter_type
action find_reverse
entity Spain
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Belgium
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Spain'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Belgium']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation resource:Spain . ?b property:diplomatic_relation resource:Belgium . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q29) (c(Q1048835),P530,Q31)
action count
action intersection
action filter_type
action find_reverse
entity Q29
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q31
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q29'] [{'concept': 'Q1048835'}, 'P530', 'Q31']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:Q1048835 . ?b property:P530 resource:Q29 . ?b property:P530 resource:Q31 . ?b rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Spain
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Belgium
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Spain'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Belgium']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation resource:Spain . ?b property:diplomatic_relation resource:Belgium . ?b rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q486972 Q355304
USER
Which administrative territories are max number of human settlements or watercourses situated in ?
(c(Q486972)|c(Q355304),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q355304
[[{'concept': 'Q486972'}, {'concept': 'Q355304'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?s ) WHERE { { ?i property:P17 ?n . ?n rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q486972 } UNION { ?i property:P17 ?n . ?i rdf:type ontology:Q355304 . ?n rdf:type ontology:Q15617994 } } GROUP BY ?n } } . FILTER ( ?g = ?p ) . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?g ) WHERE { { ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q355304 . ?v property:P17 ?x } UNION { ?v property:P17 ?x . ?v rdf:type ontology:Q486972 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } }
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type watercourse
[[{'concept': 'human settlement'}, {'concept': 'watercourse'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?s ) WHERE { { ?i property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:human_settlement } UNION { ?i property:country ?n . ?i rdf:type ontology:watercourse . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?n } } . FILTER ( ?g = ?p ) . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?g ) WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:watercourse . ?v property:country ?x } UNION { ?v property:country ?x . ?v rdf:type ontology:human_settlement . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } }
[]
designation for an administrative territorial entity human settlement watercourse
Q36
SYSTEM
Poland
Q36
(c(Q486972)|c(Q355304),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q355304
Are max number of human settlements or watercourses situated in occupied [ANSWER]
[[{'concept': 'Q486972'}, {'concept': 'Q355304'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?s ) WHERE { { ?i property:P17 ?n . ?n rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q486972 } UNION { ?i property:P17 ?n . ?i rdf:type ontology:Q355304 . ?n rdf:type ontology:Q15617994 } } GROUP BY ?n } } . FILTER ( ?g = ?p ) . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?g ) WHERE { { ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q355304 . ?v property:P17 ?x } UNION { ?v property:P17 ?x . ?v rdf:type ontology:Q486972 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } }
Poland
Are max number of human settlements or watercourses situated in occupied Poland
Poland
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type watercourse
[[{'concept': 'human settlement'}, {'concept': 'watercourse'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?s ) WHERE { { ?i property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:human_settlement } UNION { ?i property:country ?n . ?i rdf:type ontology:watercourse . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?n } } . FILTER ( ?g = ?p ) . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?g ) WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:watercourse . ?v property:country ?x } UNION { ?v property:country ?x . ?v rdf:type ontology:human_settlement . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } }
[]