Simple Question (Direct)
Simple Question
Q105202
P39
Q12737077
USER
Which occupations were the positions for which Robert von Lucius von Ballhausen were appointed ?
(Q105202,P39,c(Q12737077))
action filter_type
action find
entity Q105202
relation P39
type Q12737077
['Q105202', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q105202 property:P39 ?j }
Robert von Lucius von Ballhausen
action filter_type
action find
entity Robert von Lucius von Ballhausen
relation position held
type occupation
['Robert von Lucius von Ballhausen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Robert_von_Lucius_von_Ballhausen property:position_held ?j }
[]
occupation
Q17854096 Q18627724 Q18627576
SYSTEM
member of the Reichstag of the German Empire, Member of the Prussian House of Representatives, Member of the Prussian House of Lords
Q17854096 Q18627724 Q18627576
(Q105202,P39,c(Q12737077))
action filter_type
action find
entity Q105202
relation P39
type Q12737077
[ANSWERS] were the positions for which Robert von Lucius von Ballhausen were appointed
['Q105202', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q105202 property:P39 ?j }
member of the Reichstag of the German Empire Member of the Prussian House of Representatives Member of the Prussian House of Lords
Member of the Reichstag of the German Empire, Member of the Prussian House of Representatives and Member of the Prussian House of Lords were the positions for which Robert von Lucius von Ballhausen were appointed
member of the Reichstag of the German Empire Member of the Prussian House of Representatives Member of the Prussian House of Lords
action filter_type
action find
entity Robert von Lucius von Ballhausen
relation position held
type occupation
['Robert von Lucius von Ballhausen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Robert_von_Lucius_von_Ballhausen property:position_held ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q105202
P106
Q12737077
USER
Which occupation is the profession of Robert von Lucius von Ballhausen ?
(Q105202,P106,c(Q12737077))
action filter_type
action find
entity Q105202
relation P106
type Q12737077
['Q105202', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q105202 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Robert von Lucius von Ballhausen
action filter_type
action find
entity Robert von Lucius von Ballhausen
relation occupation
type occupation
['Robert von Lucius von Ballhausen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Robert_von_Lucius_von_Ballhausen property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q105202,P106,c(Q12737077))
action filter_type
action find
entity Q105202
relation P106
type Q12737077
The [ANSWER] is the profession of Robert von Lucius von Ballhausen
['Q105202', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q105202 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
politician
The politician is the profession of Robert von Lucius von Ballhausen
politician
action filter_type
action find
entity Robert von Lucius von Ballhausen
relation occupation
type occupation
['Robert von Lucius von Ballhausen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Robert_von_Lucius_von_Ballhausen property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5888866
Q12737077
USER
And how about Guillermo Rendueles?
(Q5888866,P106,c(Q12737077))
action filter_type
action find
entity Q5888866
relation P106
type Q12737077
['Q5888866', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q5888866 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Guillermo Rendueles
action filter_type
action find
entity Guillermo Rendueles
relation occupation
type occupation
['Guillermo Rendueles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Guillermo_Rendueles property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q211346
SYSTEM
psychiatrist
Q211346
(Q5888866,P106,c(Q12737077))
action filter_type
action find
entity Q5888866
relation P106
type Q12737077
[ANSWER]
['Q5888866', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q5888866 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
psychiatrist
psychiatrist
action filter_type
action find
entity Guillermo Rendueles
relation occupation
type occupation
['Guillermo Rendueles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Guillermo_Rendueles property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P106
Q95074 Q15619164
USER
How many fictional characters or abstract beings have career as that occupation ?
(c(Q95074),P106,Q211346) (c(Q15619164),P106,Q211346) (c(Q95074),P106,Q211346) (c(Q15619164),P106,Q211346)
action count
action union
action filter_type
action find_reverse
entity Q211346
relation P106
type Q95074
action filter_type
action find_reverse
entity Q211346
relation P106
type Q15619164
[{'concept': 'Q95074'}, 'P106', 'Q211346'] [{'concept': 'Q15619164'}, 'P106', 'Q211346'] [{'concept': 'Q95074'}, 'P106', 'Q211346'] [{'concept': 'Q15619164'}, 'P106', 'Q211346']
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ?y . VALUES ( ?y ) { ( ontology:Q95074 ) ( ontology:Q15619164 ) } }
action count
action union
action filter_type
action find_reverse
entity psychiatrist
relation occupation
type fictional character
action filter_type
action find_reverse
entity psychiatrist
relation occupation
type abstract being
[{'concept': 'fictional character'}, 'occupation', 'psychiatrist'] [{'concept': 'abstract being'}, 'occupation', 'psychiatrist'] [{'concept': 'fictional character'}, 'occupation', 'psychiatrist'] [{'concept': 'abstract being'}, 'occupation', 'psychiatrist']
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ?y . VALUES ( ?y ) { ( ontology:fictional_character ) ( ontology:abstract_being ) } }
[]
fictional character abstract being
SYSTEM
3
Q23024229 Q211013 Q849477
(c(Q95074),P106,Q211346) (c(Q15619164),P106,Q211346) (c(Q95074),P106,Q211346) (c(Q15619164),P106,Q211346)
action count
action union
action filter_type
action find_reverse
entity Q211346
relation P106
type Q95074
action filter_type
action find_reverse
entity Q211346
relation P106
type Q15619164
[ANSWER]
[{'concept': 'Q95074'}, 'P106', 'Q211346'] [{'concept': 'Q15619164'}, 'P106', 'Q211346'] [{'concept': 'Q95074'}, 'P106', 'Q211346'] [{'concept': 'Q15619164'}, 'P106', 'Q211346']
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ?y . VALUES ( ?y ) { ( ontology:Q95074 ) ( ontology:Q15619164 ) } }
Stanley Keyworth Hannibal Lecter Harley Quinn
3
action count
action union
action filter_type
action find_reverse
entity psychiatrist
relation occupation
type fictional character
action filter_type
action find_reverse
entity psychiatrist
relation occupation
type abstract being
[{'concept': 'fictional character'}, 'occupation', 'psychiatrist'] [{'concept': 'abstract being'}, 'occupation', 'psychiatrist'] [{'concept': 'fictional character'}, 'occupation', 'psychiatrist'] [{'concept': 'abstract being'}, 'occupation', 'psychiatrist']
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ?y . VALUES ( ?y ) { ( ontology:fictional_character ) ( ontology:abstract_being ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q211346
P425
Q1047113
USER
What has that one as the associated field of occupation ?
action filter_type
action find
entity Q211346
relation P425
type Q1047113
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1047113 . resource:Q211346 property:P425 ?l }
psychiatrist
action filter_type
action find
entity psychiatrist
relation field of this occupation
type special field
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:special_field . resource:psychiatrist property:field_of_this_occupation ?l }
[]
special field
Q7867
SYSTEM
psychiatry
Q7867
action filter_type
action find
entity Q211346
relation P425
type Q1047113
[ANSWER] has that one as the associated field of occupation
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1047113 . resource:Q211346 property:P425 ?l }
psychiatry
Psychiatry has that one as the associated field of occupation
psychiatry
action filter_type
action find
entity psychiatrist
relation field of this occupation
type special field
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:special_field . resource:psychiatrist property:field_of_this_occupation ?l }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5927687 Q5888866
P27
Q15617994
USER
Which administrative territories are Guillermo Rendueles or Javier Elorrieta a civilian of ?
OR((Q5888866,P27,c(Q15617994)), (Q5927687,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5888866
relation P27
action find
entity Q5927687
relation P27
type Q15617994
{'OR': [['Q5888866', 'P27', {'concept': 'Q15617994'}], ['Q5927687', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q5927687 property:P27 ?b } UNION { resource:Q5888866 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Javier Elorrieta Guillermo Rendueles
action filter_type
action union
action find
entity Guillermo Rendueles
relation country of citizenship
action find
entity Javier Elorrieta
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Guillermo Rendueles', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Javier Elorrieta', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Javier_Elorrieta property:country_of_citizenship ?b } UNION { resource:Guillermo_Rendueles property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
OR((Q5888866,P27,c(Q15617994)), (Q5927687,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5888866
relation P27
action find
entity Q5927687
relation P27
type Q15617994
[ANSWER] is Guillermo Rendueles or Javier Elorrieta a civilian of
{'OR': [['Q5888866', 'P27', {'concept': 'Q15617994'}], ['Q5927687', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q5927687 property:P27 ?b } UNION { resource:Q5888866 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Spain
Spain is Guillermo Rendueles or Javier Elorrieta a civilian of
Spain
action filter_type
action union
action find
entity Guillermo Rendueles
relation country of citizenship
action find
entity Javier Elorrieta
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Guillermo Rendueles', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Javier Elorrieta', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Javier_Elorrieta property:country_of_citizenship ?b } UNION { resource:Guillermo_Rendueles property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q29
P840
Q166142 Q2668072
USER
How many applications and collections have their narrative set in Spain ?
(c(Q166142),P840,Q29) (c(Q2668072),P840,Q29)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P840
type Q166142
action filter_type
action find_reverse
entity Q29
relation P840
type Q2668072
[{'concept': 'Q166142'}, 'P840', 'Q29'] [{'concept': 'Q2668072'}, 'P840', 'Q29']
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { ?n property:P840 resource:Q29 . ?n rdf:type ontology:Q166142 } UNION { ?n property:P840 resource:Q29 . ?n rdf:type ontology:Q2668072 } }
Spain
action count
action union
action filter_type
action find_reverse
entity Spain
relation narrative location
type application
action filter_type
action find_reverse
entity Spain
relation narrative location
type collection
[{'concept': 'application'}, 'narrative location', 'Spain'] [{'concept': 'collection'}, 'narrative location', 'Spain']
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { ?n property:narrative_location resource:Spain . ?n rdf:type ontology:application } UNION { ?n property:narrative_location resource:Spain . ?n rdf:type ontology:collection } }
[]
application collection
SYSTEM
2 applications and 1 collections
Q1133204 Q2708114 Q2976655
(c(Q166142),P840,Q29) (c(Q2668072),P840,Q29)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P840
type Q166142
action filter_type
action find_reverse
entity Q29
relation P840
type Q2668072
[ANSWER]
[{'concept': 'Q166142'}, 'P840', 'Q29'] [{'concept': 'Q2668072'}, 'P840', 'Q29']
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { ?n property:P840 resource:Q29 . ?n rdf:type ontology:Q166142 } UNION { ?n property:P840 resource:Q29 . ?n rdf:type ontology:Q2668072 } }
Street Fighter II: The World Warrior GoldenEye 007 Episodios Nacionales
2 applications and 1 collections
action count
action union
action filter_type
action find_reverse
entity Spain
relation narrative location
type application
action filter_type
action find_reverse
entity Spain
relation narrative location
type collection
[{'concept': 'application'}, 'narrative location', 'Spain'] [{'concept': 'collection'}, 'narrative location', 'Spain']
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { ?n property:narrative_location resource:Spain . ?n rdf:type ontology:application } UNION { ?n property:narrative_location resource:Spain . ?n rdf:type ontology:collection } }
[]