Simple Question (Direct)
Simple Question
Q17297295
P1412
Q34770
USER
Which language does Joan Pereyra i Morante speak in ?
(Q17297295,P1412,c(Q34770))
action filter_type
action find
entity Q17297295
relation P1412
type Q34770
['Q17297295', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q34770 . resource:Q17297295 property:P1412 ?r }
Joan Pereyra i Morante
action filter_type
action find
entity Joan Pereyra i Morante
relation languages spoken, written or signed
type language
['Joan Pereyra i Morante', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:language . resource:Joan_Pereyra_i_Morante property:languages_spoken,_written_or_signed ?r }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q17297295,P1412,c(Q34770))
action filter_type
action find
entity Q17297295
relation P1412
type Q34770
Joan Pereyra i Morante speaks in [ANSWER]
['Q17297295', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q34770 . resource:Q17297295 property:P1412 ?r }
Spanish
Joan Pereyra i Morante speaks in Spanish
Spanish
action filter_type
action find
entity Joan Pereyra i Morante
relation languages spoken, written or signed
type language
['Joan Pereyra i Morante', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:language . resource:Joan_Pereyra_i_Morante property:languages_spoken,_written_or_signed ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17297295
P39
Q12737077
USER
Which occupation was a position occupied by that person ?
(Q1321,P39,c(Q12737077))
action filter_type
action find
entity Q17297295
relation P39
type Q12737077
['Q1321', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q17297295 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Joan Pereyra i Morante
action filter_type
action find
entity Joan Pereyra i Morante
relation position held
type occupation
['Spanish', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Joan_Pereyra_i_Morante property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q18171345
SYSTEM
Member of the Congress of Deputies of Spain
Q18171345
(Q1321,P39,c(Q12737077))
action filter_type
action find
entity Q17297295
relation P39
type Q12737077
[ANSWER] was a position occupied by that person
['Q1321', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q17297295 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Member of the Congress of Deputies of Spain
Member of the Congress of Deputies of Spain was a position occupied by that person
Member of the Congress of Deputies of Spain
action filter_type
action find
entity Joan Pereyra i Morante
relation position held
type occupation
['Spanish', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Joan_Pereyra_i_Morante property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17297295
P106
Q12737077
USER
What are the professions of Joan Pereyra i Morante ?
(Q17297295,P106,c(Q12737077))
action filter_type
action find
entity Q17297295
relation P106
type Q12737077
['Q17297295', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q17297295 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Joan Pereyra i Morante
action filter_type
action find
entity Joan Pereyra i Morante
relation occupation
type occupation
['Joan Pereyra i Morante', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Joan_Pereyra_i_Morante property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q82955 Q47064
SYSTEM
politician, military personnel
Q82955 Q47064
(Q17297295,P106,c(Q12737077))
action filter_type
action find
entity Q17297295
relation P106
type Q12737077
The professions of Joan Pereyra i Morante are a [ANSWERS]
['Q17297295', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q17297295 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
politician military personnel
The professions of Joan Pereyra i Morante are a politician and military personnel
politician military personnel
action filter_type
action find
entity Joan Pereyra i Morante
relation occupation
type occupation
['Joan Pereyra i Morante', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Joan_Pereyra_i_Morante property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q10282296
Q12737077
USER
And how about Filipe de Oliveira Néri?
(Q10282296,P106,c(Q12737077))
action filter_type
action find
entity Q10282296
relation P106
type Q12737077
['Q10282296', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q10282296 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Filipe de Oliveira Néri
action filter_type
action find
entity Filipe de Oliveira Néri
relation occupation
type occupation
['Filipe de Oliveira Néri', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Filipe_de_Oliveira_Néri property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(Q10282296,P106,c(Q12737077))
action filter_type
action find
entity Q10282296
relation P106
type Q12737077
[ANSWER]
['Q10282296', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q10282296 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
journalist
journalist
action filter_type
action find
entity Filipe de Oliveira Néri
relation occupation
type occupation
['Filipe de Oliveira Néri', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Filipe_de_Oliveira_Néri property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P106
Q636497 Q874405
USER
How many stock characters and social groups have career as that occupation ?
(c(Q636497),P106,Q1930187) (c(Q874405),P106,Q1930187) (c(Q636497),P106,Q1930187) (c(Q874405),P106,Q1930187)
action count
action union
action filter_type
action find_reverse
entity Q1930187
relation P106
type Q636497
action filter_type
action find_reverse
entity Q1930187
relation P106
type Q874405
[{'concept': 'Q636497'}, 'P106', 'Q1930187'] [{'concept': 'Q874405'}, 'P106', 'Q1930187'] [{'concept': 'Q636497'}, 'P106', 'Q1930187'] [{'concept': 'Q874405'}, 'P106', 'Q1930187']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { ?g property:P106 resource:Q1930187 . ?g rdf:type ontology:Q636497 } UNION { ?g property:P106 resource:Q1930187 . ?g rdf:type ontology:Q874405 } }
action count
action union
action filter_type
action find_reverse
entity journalist
relation occupation
type stock character
action filter_type
action find_reverse
entity journalist
relation occupation
type social group
[{'concept': 'stock character'}, 'occupation', 'journalist'] [{'concept': 'social group'}, 'occupation', 'journalist'] [{'concept': 'stock character'}, 'occupation', 'journalist'] [{'concept': 'social group'}, 'occupation', 'journalist']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { ?g property:occupation resource:journalist . ?g rdf:type ontology:stock_character } UNION { ?g property:occupation resource:journalist . ?g rdf:type ontology:social_group } }
[]
stock character social group
SYSTEM
1 stock characters and 1 social groups
Q11080838 Q79015
(c(Q636497),P106,Q1930187) (c(Q874405),P106,Q1930187) (c(Q636497),P106,Q1930187) (c(Q874405),P106,Q1930187)
action count
action union
action filter_type
action find_reverse
entity Q1930187
relation P106
type Q636497
action filter_type
action find_reverse
entity Q1930187
relation P106
type Q874405
[ANSWER]
[{'concept': 'Q636497'}, 'P106', 'Q1930187'] [{'concept': 'Q874405'}, 'P106', 'Q1930187'] [{'concept': 'Q636497'}, 'P106', 'Q1930187'] [{'concept': 'Q874405'}, 'P106', 'Q1930187']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { ?g property:P106 resource:Q1930187 . ?g rdf:type ontology:Q636497 } UNION { ?g property:P106 resource:Q1930187 . ?g rdf:type ontology:Q874405 } }
Struve family Superman
1 stock characters and 1 social groups
action count
action union
action filter_type
action find_reverse
entity journalist
relation occupation
type stock character
action filter_type
action find_reverse
entity journalist
relation occupation
type social group
[{'concept': 'stock character'}, 'occupation', 'journalist'] [{'concept': 'social group'}, 'occupation', 'journalist'] [{'concept': 'stock character'}, 'occupation', 'journalist'] [{'concept': 'social group'}, 'occupation', 'journalist']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { ?g property:occupation resource:journalist . ?g rdf:type ontology:stock_character } UNION { ?g property:occupation resource:journalist . ?g rdf:type ontology:social_group } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17297295
P937
Q56061
USER
Which administrative territory is the work location of Joan Pereyra i Morante ?
(Q17297295,P937,c(Q56061))
action filter_type
action find
entity Q17297295
relation P937
type Q56061
['Q17297295', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q17297295 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Joan Pereyra i Morante
action filter_type
action find
entity Joan Pereyra i Morante
relation work location
type administrative territorial entity
['Joan Pereyra i Morante', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Joan_Pereyra_i_Morante property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q17297295,P937,c(Q56061))
action filter_type
action find
entity Q17297295
relation P937
type Q56061
[ANSWER] is the work location of Joan Pereyra i Morante
['Q17297295', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q17297295 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Madrid
Madrid is the work location of Joan Pereyra i Morante
Madrid
action filter_type
action find
entity Joan Pereyra i Morante
relation work location
type administrative territorial entity
['Joan Pereyra i Morante', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Joan_Pereyra_i_Morante property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q817729
Q56061
USER
And what about Benjamin Wade?
(Q817729,P937,c(Q56061))
action filter_type
action find
entity Q817729
relation P937
type Q56061
['Q817729', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q817729 property:P937 ?p }
Benjamin Wade
action filter_type
action find
entity Benjamin Wade
relation work location
type administrative territorial entity
['Benjamin Wade', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Benjamin_Wade property:work_location ?p }
[]
administrative territorial entity
Q61
SYSTEM
Washington, D.C.
Q61
(Q817729,P937,c(Q56061))
action filter_type
action find
entity Q817729
relation P937
type Q56061
[ANSWER]
['Q817729', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q817729 property:P937 ?p }
Washington, D.C.
Washington, D.C.
action filter_type
action find
entity Benjamin Wade
relation work location
type administrative territorial entity
['Benjamin Wade', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Benjamin_Wade property:work_location ?p }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2704716 Q17297295
P27
Q15617994
USER
Which administrative territories are Joan Pereyra i Morante or Abdelmajid Chetali an inhabitant of ?
OR((Q17297295,P27,c(Q15617994)), (Q2704716,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q17297295
relation P27
action find
entity Q2704716
relation P27
type Q15617994
{'OR': [['Q17297295', 'P27', {'concept': 'Q15617994'}], ['Q2704716', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?n ) { ( resource:Q2704716 ) ( resource:Q17297295 ) } . ?n property:P27 ?w } . ?w rdf:type ontology:Q15617994 }
Abdelmajid Chetali Joan Pereyra i Morante
action filter_type
action union
action find
entity Joan Pereyra i Morante
relation country of citizenship
action find
entity Abdelmajid Chetali
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Joan Pereyra i Morante', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Abdelmajid Chetali', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?n ) { ( resource:Abdelmajid_Chetali ) ( resource:Joan_Pereyra_i_Morante ) } . ?n property:country_of_citizenship ?w } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q948
SYSTEM
Spain, Tunisia
Q29 Q948
OR((Q17297295,P27,c(Q15617994)), (Q2704716,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q17297295
relation P27
action find
entity Q2704716
relation P27
type Q15617994
Are Joan Pereyra i Morante or Abdelmajid Chetali an inhabitant of [ANSWERS]
{'OR': [['Q17297295', 'P27', {'concept': 'Q15617994'}], ['Q2704716', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?n ) { ( resource:Q2704716 ) ( resource:Q17297295 ) } . ?n property:P27 ?w } . ?w rdf:type ontology:Q15617994 }
Spain Tunisia
Are Joan Pereyra i Morante or Abdelmajid Chetali an inhabitant of Spain and Tunisia
Spain Tunisia
action filter_type
action union
action find
entity Joan Pereyra i Morante
relation country of citizenship
action find
entity Abdelmajid Chetali
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Joan Pereyra i Morante', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Abdelmajid Chetali', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?n ) { ( resource:Abdelmajid_Chetali ) ( resource:Joan_Pereyra_i_Morante ) } . ?n property:country_of_citizenship ?w } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4427369
P530
Q1048835
USER
Do Sokolivochka have diplomatic relations with those administrative territories ?
(Q4427369,P530,Q29) (Q4427369,P530,Q948)
action is_in
entity prev_answer
action find
entity Q4427369
relation P530
['Q4427369', 'P530', 'Q29'] ['Q4427369', 'P530', 'Q948']
ASK WHERE { VALUES ( ?p ) { ( resource:Q29 ) ( resource:Q948 ) } . resource:Q4427369 property:P530 ?p }
Sokolivochka
action is_in
entity prev_answer
action find
entity Sokolivochka
relation diplomatic relation
['Sokolivochka', 'diplomatic relation', 'Spain'] ['Sokolivochka', 'diplomatic relation', 'Tunisia']
ASK WHERE { VALUES ( ?p ) { ( resource:Spain ) ( resource:Tunisia ) } . resource:Sokolivochka property:diplomatic_relation ?p }
[]
political territorial entity
SYSTEM
NO
(Q4427369,P530,Q29) (Q4427369,P530,Q948)
action is_in
entity prev_answer
action find
entity Q4427369
relation P530
[ANSWER]
['Q4427369', 'P530', 'Q29'] ['Q4427369', 'P530', 'Q948']
ASK WHERE { VALUES ( ?p ) { ( resource:Q29 ) ( resource:Q948 ) } . resource:Q4427369 property:P530 ?p }
No
action is_in
entity prev_answer
action find
entity Sokolivochka
relation diplomatic relation
['Sokolivochka', 'diplomatic relation', 'Spain'] ['Sokolivochka', 'diplomatic relation', 'Tunisia']
ASK WHERE { VALUES ( ?p ) { ( resource:Spain ) ( resource:Tunisia ) } . resource:Sokolivochka property:diplomatic_relation ?p }
[]