Simple Question (Direct)
Simple Question
Q16624155
P1412
Q34770
USER
Which language is Rafael Villanueva Cortez capable of writing ?
(Q16624155,P1412,c(Q34770))
action filter_type
action find
entity Q16624155
relation P1412
type Q34770
['Q16624155', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q16624155 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Rafael Villanueva Cortez
action filter_type
action find
entity Rafael Villanueva Cortez
relation languages spoken, written or signed
type language
['Rafael Villanueva Cortez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Rafael_Villanueva_Cortez property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q16624155,P1412,c(Q34770))
action filter_type
action find
entity Q16624155
relation P1412
type Q34770
[ANSWER] is Rafael Villanueva Cortez capable of writing
['Q16624155', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q16624155 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Spanish
Spanish is Rafael Villanueva Cortez capable of writing
Spanish
action filter_type
action find
entity Rafael Villanueva Cortez
relation languages spoken, written or signed
type language
['Rafael Villanueva Cortez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Rafael_Villanueva_Cortez property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16624155
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q1321,P106,c(Q12737077))
action filter_type
action find
entity Q16624155
relation P106
type Q12737077
['Q1321', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q16624155 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Rafael Villanueva Cortez
action filter_type
action find
entity Rafael Villanueva Cortez
relation occupation
type occupation
['Spanish', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Rafael_Villanueva_Cortez property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q82955 Q4594605
SYSTEM
politician, magistrate
Q82955 Q4594605
(Q1321,P106,c(Q12737077))
action filter_type
action find
entity Q16624155
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q1321', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q16624155 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
politician magistrate
The professions of that person are politician and magistrate
politician magistrate
action filter_type
action find
entity Rafael Villanueva Cortez
relation occupation
type occupation
['Spanish', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Rafael_Villanueva_Cortez property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q82955 Q4594605
P39
Q502895
USER
Which people were responsible for occupying the position of politician and magistrate ?
(c(Q502895),P39,Q82955) (c(Q502895),P39,Q4594605)
action union
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
action filter_type
action find_reverse
entity Q4594605
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q4594605']
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q502895 . ?q property:P39 resource:Q82955 } UNION { ?q rdf:type ontology:Q502895 . ?q property:P39 resource:Q4594605 } }
politician magistrate
action union
action filter_type
action find_reverse
entity politician
relation position held
type common name
action filter_type
action find_reverse
entity magistrate
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'magistrate']
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:common_name . ?q property:position_held resource:politician } UNION { ?q rdf:type ontology:common_name . ?q property:position_held resource:magistrate } }
[]
common name
Q16016459 Q26215129 Q16859799
SYSTEM
Nora Guinn, Morteza Azari, Pieter Jacobsz Olycan
Q26215129 Q21334216 Q16859799 Q16016459
(c(Q502895),P39,Q82955) (c(Q502895),P39,Q4594605)
action union
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
action filter_type
action find_reverse
entity Q4594605
relation P39
type Q502895
[ANSWERS] were responsible for occupying the position of politician and magistrate
[{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q4594605']
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q502895 . ?q property:P39 resource:Q82955 } UNION { ?q rdf:type ontology:Q502895 . ?q property:P39 resource:Q4594605 } }
Morteza Azari Antoine Edme Delahuproye Pieter Jacobsz Olycan Nora Guinn
Nora Guinn, Morteza Azari and Pieter Jacobsz Olycan were responsible for occupying the position of politician and magistrate
Nora Guinn Morteza Azari Pieter Jacobsz Olycan
action union
action filter_type
action find_reverse
entity politician
relation position held
type common name
action filter_type
action find_reverse
entity magistrate
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'magistrate']
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:common_name . ?q property:position_held resource:politician } UNION { ?q rdf:type ontology:common_name . ?q property:position_held resource:magistrate } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q26215129
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q26215129,P19,c(Q56061))
action filter_type
action find
entity Q26215129
relation P19
type Q56061
['Q26215129', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q26215129 property:P19 ?c }
Morteza Azari
action filter_type
action find
entity Morteza Azari
relation place of birth
type administrative territorial entity
['Morteza Azari', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Morteza_Azari property:place_of_birth ?c }
[]
administrative territorial entity
Clarification for simple ques.
Q16859799
SYSTEM
Did you mean Pieter Jacobsz Olycan ?
Q16016459 Q26215129 Q16859799
(Q16016459,P19,c(Q56061)) (Q26215129,P19,c(Q56061)) (Q16859799,P19,c(Q56061))
[ANSWER]
['Q16016459', 'P19', {'concept': 'Q56061'}] ['Q26215129', 'P19', {'concept': 'Q56061'}] ['Q16859799', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q26215129 property:P19 ?c }
Nora Guinn Morteza Azari Pieter Jacobsz Olycan
Did you mean Pieter Jacobsz Olycan ?
Pieter Jacobsz Olycan
['Nora Guinn', 'place of birth', {'concept': 'administrative territorial entity'}] ['Morteza Azari', 'place of birth', {'concept': 'administrative territorial entity'}] ['Pieter Jacobsz Olycan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Morteza_Azari property:place_of_birth ?c }
[]
Simple Question (Coreferenced)
USER
No, I meant Morteza Azari. Could you tell me the answer for that?
(Q26215129,P19,c(Q56061))
Q26215129
['Q26215129', 'P19', {'concept': 'Q56061'}]
['Morteza Azari', 'place of birth', {'concept': 'administrative territorial entity'}]
[]
Q121157
SYSTEM
Mashhad
Q121157
(Q26215129,P19,c(Q56061))
action filter_type
action find
entity Q26215129
relation P19
type Q56061
That person was born in [ANSWER]
['Q26215129', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q26215129 property:P19 ?c }
Mashhad
That person was born in Mashhad
Mashhad
action filter_type
action find
entity Morteza Azari
relation place of birth
type administrative territorial entity
['Morteza Azari', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Morteza_Azari property:place_of_birth ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
How many ship types have exactly 2 administrative territories as their registry harbour ?
(c(Q2235308),P532,c(Q56061))
action count
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?d ) WHERE { ?a property:P532 ?u . ?a rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?a } . FILTER ( ?d = 2 ) }
action count
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?d ) WHERE { ?a property:port_of_registry ?u . ?a rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?d = 2 ) }
[]
administrative territorial entity ship type
SYSTEM
4
Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action count
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?d ) WHERE { ?a property:P532 ?u . ?a rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?a } . FILTER ( ?d = 2 ) }
Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
4
action count
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?d ) WHERE { ?a property:port_of_registry ?u . ?a rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?d = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q18644085
Q56061
USER
And also tell me about Adolfo Díaz-Ambrona Bardají?
(Q18644085,P20,c(Q56061))
action count
action filter_type
action find
entity Q18644085
relation P20
type Q56061
['Q18644085', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Q18644085 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Adolfo Díaz-Ambrona Bardají
action count
action filter_type
action find
entity Adolfo Díaz-Ambrona Bardají
relation place of death
type administrative territorial entity
['Adolfo Díaz-Ambrona Bardají', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Adolfo_Díaz-Ambrona_Bardají property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q18644085,P20,c(Q56061))
action count
action filter_type
action find
entity Q18644085
relation P20
type Q56061
[ANSWER]
['Q18644085', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Q18644085 property:P20 ?u . ?u rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Adolfo Díaz-Ambrona Bardají
relation place of death
type administrative territorial entity
['Adolfo Díaz-Ambrona Bardají', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Adolfo_Díaz-Ambrona_Bardají property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]