Simple Question (Direct)
Simple Question
Q1582359
P734
Q82799
USER
Who is associated with Hans Schneider ?
(Q1582359,P734,c(Q82799))
action filter_type
action find
entity Q1582359
relation P734
type Q82799
['Q1582359', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q1582359 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Hans Schneider
action filter_type
action find
entity Hans Schneider
relation family name
type name
['Hans Schneider', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Hans_Schneider property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q11703653
SYSTEM
Schneider
Q11703653
(Q1582359,P734,c(Q82799))
action filter_type
action find
entity Q1582359
relation P734
type Q82799
[ANSWER] is associated with Hans [ANSWER]
['Q1582359', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q1582359 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Schneider
Schneider is associated with Hans Schneider
Schneider
action filter_type
action find
entity Hans Schneider
relation family name
type name
['Hans Schneider', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Hans_Schneider property:family_name ?f . ?f rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q21962301 Q1582359
P27 P17
Q1048835
USER
Which political territories are Hans Schneider a civilian of or are Gentle Annie Hill a part of ?
OR((Q1582359,P27,c(Q1048835)), (Q21962301,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1582359
relation P27
action find
entity Q21962301
relation P17
type Q1048835
{'OR': [['Q1582359', 'P27', {'concept': 'Q1048835'}], ['Q21962301', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1582359 property:P27 ?w } UNION { resource:Q21962301 property:P17 ?w } } . ?w rdf:type ontology:Q1048835 }
Gentle Annie Hill Hans Schneider
action filter_type
action union
action find
entity Hans Schneider
relation country of citizenship
action find
entity Gentle Annie Hill
relation country
type political territorial entity
{'OR': [['Hans Schneider', 'country of citizenship', {'concept': 'political territorial entity'}], ['Gentle Annie Hill', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Hans_Schneider property:country_of_citizenship ?w } UNION { resource:Gentle_Annie_Hill property:country ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q1582359,P27,c(Q1048835)), (Q21962301,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q1582359
relation P27
action find
entity Q21962301
relation P17
type Q1048835
[ANSWERS] are Hans Schneider a civilian of or are Gentle Annie Hill a part of
{'OR': [['Q1582359', 'P27', {'concept': 'Q1048835'}], ['Q21962301', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1582359 property:P27 ?w } UNION { resource:Q21962301 property:P17 ?w } } . ?w rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany are Hans Schneider a civilian of or are Gentle Annie Hill a part of
Australia Germany
action filter_type
action union
action find
entity Hans Schneider
relation country of citizenship
action find
entity Gentle Annie Hill
relation country
type political territorial entity
{'OR': [['Hans Schneider', 'country of citizenship', {'concept': 'political territorial entity'}], ['Gentle Annie Hill', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Hans_Schneider property:country_of_citizenship ?w } UNION { resource:Gentle_Annie_Hill property:country ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q55
P530
Q15617994
USER
Do Netherlands have ambassadorial relations with those political territories ?
(Q55,P530,Q408) (Q55,P530,Q183)
action is_in
entity prev_answer
action find
entity Q55
relation P530
['Q55', 'P530', 'Q408'] ['Q55', 'P530', 'Q183']
ASK WHERE { resource:Q55 property:P530 ?e . VALUES ( ?e ) { ( resource:Q408 ) ( resource:Q183 ) } }
Netherlands
action is_in
entity prev_answer
action find
entity Netherlands
relation diplomatic relation
['Netherlands', 'diplomatic relation', 'Australia'] ['Netherlands', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Netherlands property:diplomatic_relation ?e . VALUES ( ?e ) { ( resource:Australia ) ( resource:Germany ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q55,P530,Q408) (Q55,P530,Q183)
action is_in
entity prev_answer
action find
entity Q55
relation P530
[ANSWER]
['Q55', 'P530', 'Q408'] ['Q55', 'P530', 'Q183']
ASK WHERE { resource:Q55 property:P530 ?e . VALUES ( ?e ) { ( resource:Q408 ) ( resource:Q183 ) } }
Yes
action is_in
entity prev_answer
action find
entity Netherlands
relation diplomatic relation
['Netherlands', 'diplomatic relation', 'Australia'] ['Netherlands', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Netherlands property:diplomatic_relation ?e . VALUES ( ?e ) { ( resource:Australia ) ( resource:Germany ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1582359
P21
Q290
USER
What is the sex of Hans Schneider ?
(Q1582359,P21,c(Q290))
action filter_type
action find
entity Q1582359
relation P21
type Q290
['Q1582359', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q1582359 property:P21 ?h }
Hans Schneider
action filter_type
action find
entity Hans Schneider
relation gender
type sex
['Hans Schneider', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Hans_Schneider property:gender ?h }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1582359,P21,c(Q290))
action filter_type
action find
entity Q1582359
relation P21
type Q290
The sex of Hans Schneider is the [ANSWER]
['Q1582359', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q1582359 property:P21 ?h }
male
The sex of Hans Schneider is the male
male
action filter_type
action find
entity Hans Schneider
relation gender
type sex
['Hans Schneider', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Hans_Schneider property:gender ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7789912
Q290
USER
And what about Thomas Gamey?
(Q7789912,P21,c(Q290))
action filter_type
action find
entity Q7789912
relation P21
type Q290
['Q7789912', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q290 . resource:Q7789912 property:P21 ?a }
Thomas Gamey
action filter_type
action find
entity Thomas Gamey
relation gender
type sex
['Thomas Gamey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sex . resource:Thomas_Gamey property:gender ?a }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7789912,P21,c(Q290))
action filter_type
action find
entity Q7789912
relation P21
type Q290
[ANSWER]
['Q7789912', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q290 . resource:Q7789912 property:P21 ?a }
male
male
action filter_type
action find
entity Thomas Gamey
relation gender
type sex
['Thomas Gamey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sex . resource:Thomas_Gamey property:gender ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7789912
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q7789912
relation P39
type Q12737077
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q7789912 property:P39 ?a }
Thomas Gamey
action filter_type
action find
entity Thomas Gamey
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Thomas_Gamey property:position_held ?a }
[]
occupation
Q3305347
SYSTEM
Member of Ontario Provincial Parliament
Q3305347
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q7789912
relation P39
type Q12737077
A [ANSWER] was a position held by that person
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q7789912 property:P39 ?a }
Member of Ontario Provincial Parliament
A Member of Ontario Provincial Parliament was a position held by that person
Member of Ontario Provincial Parliament
action filter_type
action find
entity Thomas Gamey
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Thomas_Gamey property:position_held ?a }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6991688 Q1582359
P106
Q12737077
USER
Which occupations are the professions of Hans Schneider or Nené Ballina ?
OR((Q1582359,P106,c(Q12737077)), (Q6991688,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1582359
relation P106
action find
entity Q6991688
relation P106
type Q12737077
{'OR': [['Q1582359', 'P106', {'concept': 'Q12737077'}], ['Q6991688', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1582359 property:P106 ?h } UNION { resource:Q6991688 property:P106 ?h } } . ?h rdf:type ontology:Q12737077 }
Nené Ballina Hans Schneider
action filter_type
action union
action find
entity Hans Schneider
relation occupation
action find
entity Nené Ballina
relation occupation
type occupation
{'OR': [['Hans Schneider', 'occupation', {'concept': 'occupation'}], ['Nené Ballina', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Hans_Schneider property:occupation ?h } UNION { resource:Nené_Ballina property:occupation ?h } } . ?h rdf:type ontology:occupation }
[]
occupation
Q1234713 Q1743122 Q628099 Q1622272 Q937857
SYSTEM
theologian, church historian, association football manager, university teacher, association football player
Q1234713 Q1743122 Q628099 Q1622272 Q937857
OR((Q1582359,P106,c(Q12737077)), (Q6991688,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1582359
relation P106
action find
entity Q6991688
relation P106
type Q12737077
Player [ANSWERS] are the professions of Hans Schneider or Nené Ballina
{'OR': [['Q1582359', 'P106', {'concept': 'Q12737077'}], ['Q6991688', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1582359 property:P106 ?h } UNION { resource:Q6991688 property:P106 ?h } } . ?h rdf:type ontology:Q12737077 }
theologian church historian association football manager university teacher association football player
Player theologian, church historian, association football manager, university teacher and association football player are the professions of Hans Schneider or Nené Ballina
theologian church historian association football manager university teacher association football player
action filter_type
action union
action find
entity Hans Schneider
relation occupation
action find
entity Nené Ballina
relation occupation
type occupation
{'OR': [['Hans Schneider', 'occupation', {'concept': 'occupation'}], ['Nené Ballina', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Hans_Schneider property:occupation ?h } UNION { resource:Nené_Ballina property:occupation ?h } } . ?h rdf:type ontology:occupation }
[]