Simple Question (Direct)
Simple Question
Q1897224
P27
Q1048835
USER
Which political territory is Marie-Thérèse Schins a civilian of ?
(Q1897224,P27,c(Q1048835))
action filter_type
action find
entity Q1897224
relation P27
type Q1048835
['Q1897224', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q1897224 property:P27 ?h . ?h rdf:type ontology:Q1048835 }
Marie-Thérèse Schins
action filter_type
action find
entity Marie-Thérèse Schins
relation country of citizenship
type political territorial entity
['Marie-Thérèse Schins', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Marie-Thérèse_Schins property:country_of_citizenship ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1897224,P27,c(Q1048835))
action filter_type
action find
entity Q1897224
relation P27
type Q1048835
[ANSWER] is Marie-Thérèse Schins a civilian of
['Q1897224', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q1897224 property:P27 ?h . ?h rdf:type ontology:Q1048835 }
Germany
Germany is Marie-Thérèse Schins a civilian of
Germany
action filter_type
action find
entity Marie-Thérèse Schins
relation country of citizenship
type political territorial entity
['Marie-Thérèse Schins', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Marie-Thérèse_Schins property:country_of_citizenship ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1897224
P937
Q486972
USER
Which human settlement is the work location of Marie-Thérèse Schins ?
(Q1897224,P937,c(Q486972))
action filter_type
action find
entity Q1897224
relation P937
type Q486972
['Q1897224', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { resource:Q1897224 property:P937 ?r . ?r rdf:type ontology:Q486972 }
Marie-Thérèse Schins
action filter_type
action find
entity Marie-Thérèse Schins
relation work location
type human settlement
['Marie-Thérèse Schins', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { resource:Marie-Thérèse_Schins property:work_location ?r . ?r rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q1897224,P937,c(Q486972))
action filter_type
action find
entity Q1897224
relation P937
type Q486972
[ANSWER] is the work location of Marie-Thérèse Schins
['Q1897224', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { resource:Q1897224 property:P937 ?r . ?r rdf:type ontology:Q486972 }
Hamburg
Hamburg is the work location of Marie-Thérèse Schins
Hamburg
action filter_type
action find
entity Marie-Thérèse Schins
relation work location
type human settlement
['Marie-Thérèse Schins', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { resource:Marie-Thérèse_Schins property:work_location ?r . ?r rdf:type ontology:human_settlement }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q13641074
Q486972
USER
And what about Hubert Stierling?
(Q13641074,P937,c(Q486972))
action filter_type
action find
entity Q13641074
relation P937
type Q486972
['Q13641074', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q13641074 property:P937 ?d . ?d rdf:type ontology:Q486972 }
Hubert Stierling
action filter_type
action find
entity Hubert Stierling
relation work location
type human settlement
['Hubert Stierling', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Hubert_Stierling property:work_location ?d . ?d rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q13641074,P937,c(Q486972))
action filter_type
action find
entity Q13641074
relation P937
type Q486972
[ANSWER]
['Q13641074', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q13641074 property:P937 ?d . ?d rdf:type ontology:Q486972 }
Hamburg
Hamburg
action filter_type
action find
entity Hubert Stierling
relation work location
type human settlement
['Hubert Stierling', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Hubert_Stierling property:work_location ?d . ?d rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P85
Q7725634
USER
What is the national anthem of Germany ?
(Q183,P85,c(Q7725634))
action filter_type
action find
entity Q183
relation P85
type Q7725634
['Q183', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?o WHERE { resource:Q183 property:P85 ?o . ?o rdf:type ontology:Q7725634 }
Germany
action filter_type
action find
entity Germany
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?o WHERE { resource:Germany property:anthem ?o . ?o rdf:type ontology:literary_work }
[]
literary work
Q44042
SYSTEM
Das Lied der Deutschen
Q44042
(Q183,P85,c(Q7725634))
action filter_type
action find
entity Q183
relation P85
type Q7725634
The national anthem of Germany is [ANSWER]
['Q183', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?o WHERE { resource:Q183 property:P85 ?o . ?o rdf:type ontology:Q7725634 }
Das Lied der Deutschen
The national anthem of Germany is Das Lied der Deutschen
Das Lied der Deutschen
action filter_type
action find
entity Germany
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?o WHERE { resource:Germany property:anthem ?o . ?o rdf:type ontology:literary_work }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q193619
Q7725634
USER
And also tell me about Union of South Africa?
(Q193619,P85,c(Q7725634))
action filter_type
action find
entity Q193619
relation P85
type Q7725634
['Q193619', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?x WHERE { resource:Q193619 property:P85 ?x . ?x rdf:type ontology:Q7725634 }
Union of South Africa
action filter_type
action find
entity Union of South Africa
relation anthem
type literary work
['Union of South Africa', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?x WHERE { resource:Union_of_South_Africa property:anthem ?x . ?x rdf:type ontology:literary_work }
[]
literary work
Q537157
SYSTEM
Die Stem van Suid-Afrika
Q537157
(Q193619,P85,c(Q7725634))
action filter_type
action find
entity Q193619
relation P85
type Q7725634
[ANSWER]
['Q193619', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?x WHERE { resource:Q193619 property:P85 ?x . ?x rdf:type ontology:Q7725634 }
Die Stem van Suid-Afrika
Die Stem van Suid-Afrika
action filter_type
action find
entity Union of South Africa
relation anthem
type literary work
['Union of South Africa', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?x WHERE { resource:Union_of_South_Africa property:anthem ?x . ?x rdf:type ontology:literary_work }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories have diplomatic associations with atmost 5 political territories and administrative territories ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action atmost
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) ?s WHERE { { ?s property:P530 ?p . ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } UNION { ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?s property:P530 ?p } } GROUP BY ?s } . FILTER ( ?o <= 5 ) }
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) ?s WHERE { { ?s property:diplomatic_relation ?p . ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } UNION { ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?p } } GROUP BY ?s } . FILTER ( ?o <= 5 ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q664 Q1000 Q769
SYSTEM
New Zealand, Gabon, Grenada
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action atmost
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[ANSWERS] have diplomatic associations with atmost 5 political territories and administrative territories
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) ?s WHERE { { ?s property:P530 ?p . ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } UNION { ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?s property:P530 ?p } } GROUP BY ?s } . FILTER ( ?o <= 5 ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
New Zealand, Gabon and Grenada have diplomatic associations with atmost 5 political territories and administrative territories
New Zealand Gabon Grenada
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) ?s WHERE { { ?s property:diplomatic_relation ?p . ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } UNION { ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?p } } GROUP BY ?s } . FILTER ( ?o <= 5 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7170842 Q1055
P17
Q1048835
USER
Which political territories are Hamburg or Perth Convention and Exhibition Centre located in ?
OR((Q1055,P17,c(Q1048835)), (Q7170842,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1055
relation P17
action find
entity Q7170842
relation P17
type Q1048835
{'OR': [['Q1055', 'P17', {'concept': 'Q1048835'}], ['Q7170842', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . { { resource:Q1055 property:P17 ?u } UNION { resource:Q7170842 property:P17 ?u } } }
Perth Convention and Exhibition Centre Hamburg
action filter_type
action union
action find
entity Hamburg
relation country
action find
entity Perth Convention and Exhibition Centre
relation country
type political territorial entity
{'OR': [['Hamburg', 'country', {'concept': 'political territorial entity'}], ['Perth Convention and Exhibition Centre', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . { { resource:Hamburg property:country ?u } UNION { resource:Perth_Convention_and_Exhibition_Centre property:country ?u } } }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q1055,P17,c(Q1048835)), (Q7170842,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1055
relation P17
action find
entity Q7170842
relation P17
type Q1048835
Hamburg or Perth Convention and Exhibition Centre are located in [ANSWERS]
{'OR': [['Q1055', 'P17', {'concept': 'Q1048835'}], ['Q7170842', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . { { resource:Q1055 property:P17 ?u } UNION { resource:Q7170842 property:P17 ?u } } }
Australia Germany
Hamburg or Perth Convention and Exhibition Centre are located in Australia and Germany
Australia Germany
action filter_type
action union
action find
entity Hamburg
relation country
action find
entity Perth Convention and Exhibition Centre
relation country
type political territorial entity
{'OR': [['Hamburg', 'country', {'concept': 'political territorial entity'}], ['Perth Convention and Exhibition Centre', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . { { resource:Hamburg property:country ?u } UNION { resource:Perth_Convention_and_Exhibition_Centre property:country ?u } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q33
P530
Q15617994
USER
Do Finland have diplomatic relations with those political territories ?
(Q33,P530,Q408) (Q33,P530,Q183)
action is_in
entity prev_answer
action find
entity Q33
relation P530
['Q33', 'P530', 'Q408'] ['Q33', 'P530', 'Q183']
ASK WHERE { resource:Q33 property:P530 ?f . VALUES ( ?f ) { ( resource:Q408 ) ( resource:Q183 ) } }
Finland
action is_in
entity prev_answer
action find
entity Finland
relation diplomatic relation
['Finland', 'diplomatic relation', 'Australia'] ['Finland', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Finland property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Australia ) ( resource:Germany ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q33,P530,Q408) (Q33,P530,Q183)
action is_in
entity prev_answer
action find
entity Q33
relation P530
[ANSWER]
['Q33', 'P530', 'Q408'] ['Q33', 'P530', 'Q183']
ASK WHERE { resource:Q33 property:P530 ?f . VALUES ( ?f ) { ( resource:Q408 ) ( resource:Q183 ) } }
Yes
action is_in
entity prev_answer
action find
entity Finland
relation diplomatic relation
['Finland', 'diplomatic relation', 'Australia'] ['Finland', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Finland property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Australia ) ( resource:Germany ) } }
[]