Simple Question (Direct)
Simple Question
Q3767018
P39
Q12737077
USER
Which occupation was a position for which Giovanni Ciampitti was appointed ?
(Q3767018,P39,c(Q12737077))
action filter_type
action find
entity Q3767018
relation P39
type Q12737077
['Q3767018', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q3767018 property:P39 ?z }
Giovanni Ciampitti
action filter_type
action find
entity Giovanni Ciampitti
relation position held
type occupation
['Giovanni Ciampitti', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Giovanni_Ciampitti property:position_held ?z }
[]
occupation
Q18558478
SYSTEM
member of the Chamber of Deputies of the Italian Republic
Q18558478
(Q3767018,P39,c(Q12737077))
action filter_type
action find
entity Q3767018
relation P39
type Q12737077
The [ANSWER] was a position for which Giovanni Ciampitti was appointed
['Q3767018', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q3767018 property:P39 ?z }
member of the Chamber of Deputies of the Italian Republic
The member of the Chamber of Deputies of the Italian Republic was a position for which Giovanni Ciampitti was appointed
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity Giovanni Ciampitti
relation position held
type occupation
['Giovanni Ciampitti', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Giovanni_Ciampitti property:position_held ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3767018
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q18558478,P1412,c(Q34770))
action filter_type
action find
entity Q3767018
relation P1412
type Q34770
['Q18558478', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q34770 . resource:Q3767018 property:P1412 ?s }
Giovanni Ciampitti
action filter_type
action find
entity Giovanni Ciampitti
relation languages spoken, written or signed
type language
['member of the Chamber of Deputies of the Italian Republic', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:language . resource:Giovanni_Ciampitti property:languages_spoken,_written_or_signed ?s }
[]
language
Q652
SYSTEM
Italian
Q652
(Q18558478,P1412,c(Q34770))
action filter_type
action find
entity Q3767018
relation P1412
type Q34770
The [ANSWER] is that person capable of writing
['Q18558478', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q34770 . resource:Q3767018 property:P1412 ?s }
Italian
The Italian is that person capable of writing
Italian
action filter_type
action find
entity Giovanni Ciampitti
relation languages spoken, written or signed
type language
['member of the Chamber of Deputies of the Italian Republic', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:language . resource:Giovanni_Ciampitti property:languages_spoken,_written_or_signed ?s }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P103
Q34770 Q502895
USER
How many languages are the names of the language native to approximately the same number of people as that language ?
(c(Q502895),P103,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find
entity Q652
relation P103
type Q34770
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?u ) WHERE { ?p property:P103 ?d . ?p rdf:type ontology:Q502895 . ?d rdf:type ontology:Q34770 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { resource:Q652 property:P103 ?h . ?h rdf:type ontology:Q34770 } } . FILTER ( ?u = ?t ) }
action count
action approx
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find
entity Italian
relation native language
type language
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?u ) WHERE { ?p property:native_language ?d . ?p rdf:type ontology:common_name . ?d rdf:type ontology:language } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { resource:Italian property:native_language ?h . ?h rdf:type ontology:language } } . FILTER ( ?u = ?t ) }
[]
language common name
SYSTEM
9
Q3200839 Q9056 Q652 Q8752 Q1321 Q13211 Q397 Q8785 Q25164
(c(Q502895),P103,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find
entity Q652
relation P103
type Q34770
[ANSWER]
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?u ) WHERE { ?p property:P103 ?d . ?p rdf:type ontology:Q502895 . ?d rdf:type ontology:Q34770 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { resource:Q652 property:P103 ?h . ?h rdf:type ontology:Q34770 } } . FILTER ( ?u = ?t ) }
Kwaza language Czech Italian Basque Spanish Ruthenian Latin Armenian Nynorsk
9
action count
action approx
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find
entity Italian
relation native language
type language
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?u ) WHERE { ?p property:native_language ?d . ?p rdf:type ontology:common_name . ?d rdf:type ontology:language } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { resource:Italian property:native_language ?h . ?h rdf:type ontology:language } } . FILTER ( ?u = ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q23838435 Q3767018
P19 P495
Q15617994
USER
Which administrative territories are the birthplace of Giovanni Ciampitti or did The Happiest Day in the Life of Olli Mäki originate ?
OR((Q3767018,P19,c(Q15617994)), (Q23838435,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q3767018
relation P19
action find
entity Q23838435
relation P495
type Q15617994
{'OR': [['Q3767018', 'P19', {'concept': 'Q15617994'}], ['Q23838435', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q3767018 property:P19 ?q } UNION { resource:Q23838435 property:P495 ?q } } . ?q rdf:type ontology:Q15617994 }
The Happiest Day in the Life of Olli Mäki Giovanni Ciampitti
action filter_type
action union
action find
entity Giovanni Ciampitti
relation place of birth
action find
entity The Happiest Day in the Life of Olli Mäki
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Giovanni Ciampitti', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['The Happiest Day in the Life of Olli Mäki', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Giovanni_Ciampitti property:place_of_birth ?q } UNION { resource:The_Happiest_Day_in_the_Life_of_Olli_Mäki property:country_of_origin ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q13450 Q34
SYSTEM
Finland, Isernia, Sweden
Q33 Q13450 Q34
OR((Q3767018,P19,c(Q15617994)), (Q23838435,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q3767018
relation P19
action find
entity Q23838435
relation P495
type Q15617994
[ANSWERS] are the birthplace of Giovanni Ciampitti or did The Happiest Day in the Life of Olli Mäki originate
{'OR': [['Q3767018', 'P19', {'concept': 'Q15617994'}], ['Q23838435', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q3767018 property:P19 ?q } UNION { resource:Q23838435 property:P495 ?q } } . ?q rdf:type ontology:Q15617994 }
Finland Isernia Sweden
Finland, Isernia and Sweden are the birthplace of Giovanni Ciampitti or did The Happiest Day in the Life of Olli Mäki originate
Finland Isernia Sweden
action filter_type
action union
action find
entity Giovanni Ciampitti
relation place of birth
action find
entity The Happiest Day in the Life of Olli Mäki
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Giovanni Ciampitti', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['The Happiest Day in the Life of Olli Mäki', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Giovanni_Ciampitti property:place_of_birth ?q } UNION { resource:The_Happiest_Day_in_the_Life_of_Olli_Mäki property:country_of_origin ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q33 Q13450 Q34
P17
Q15617994
USER
Which administrative territories are those ones present in ?
(Q33,P17,c(Q15617994)) (Q13450,P17,c(Q15617994)) (Q34,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q33', 'P17', {'concept': 'Q15617994'}] ['Q13450', 'P17', {'concept': 'Q15617994'}] ['Q34', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . ?g property:P17 ?i . VALUES ( ?g ) { ( resource:Q33 ) ( resource:Q13450 ) ( resource:Q34 ) } }
Finland Isernia Sweden
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Finland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Isernia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sweden', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:country ?i . VALUES ( ?g ) { ( resource:Finland ) ( resource:Isernia ) ( resource:Sweden ) } }
[]
designation for an administrative territorial entity
Q33 Q38 Q34
SYSTEM
Finland, Italy, Sweden
Q33 Q38 Q34
(Q33,P17,c(Q15617994)) (Q13450,P17,c(Q15617994)) (Q34,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Are those ones present in [ANSWERS] in
['Q33', 'P17', {'concept': 'Q15617994'}] ['Q13450', 'P17', {'concept': 'Q15617994'}] ['Q34', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . ?g property:P17 ?i . VALUES ( ?g ) { ( resource:Q33 ) ( resource:Q13450 ) ( resource:Q34 ) } }
Finland Italy Sweden
Are those ones present in Finland, Italy and Sweden in
Finland Italy Sweden
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Finland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Isernia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sweden', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:country ?i . VALUES ( ?g ) { ( resource:Finland ) ( resource:Isernia ) ( resource:Sweden ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q33
P551
Q502895
USER
Which person has residence at that administrative territory ?
(c(Q502895),P551,Q33)
action filter_type
action find_reverse
entity Q33
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q33']
SELECT DISTINCT ?h WHERE { ?h property:P551 resource:Q33 . ?h rdf:type ontology:Q502895 }
Finland
action filter_type
action find_reverse
entity Finland
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Finland']
SELECT DISTINCT ?h WHERE { ?h property:residence resource:Finland . ?h rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q38
SYSTEM
Did you mean Italy ?
Q33 Q38 Q34
(c(Q502895),P551,Q33) (c(Q502895),P551,Q38) (c(Q502895),P551,Q34)
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q33'] [{'concept': 'Q502895'}, 'P551', 'Q38'] [{'concept': 'Q502895'}, 'P551', 'Q34']
SELECT DISTINCT ?h WHERE { ?h property:P551 resource:Q33 . ?h rdf:type ontology:Q502895 }
Finland Italy Sweden
Did you mean Italy ?
Italy
[{'concept': 'common name'}, 'residence', 'Finland'] [{'concept': 'common name'}, 'residence', 'Italy'] [{'concept': 'common name'}, 'residence', 'Sweden']
SELECT DISTINCT ?h WHERE { ?h property:residence resource:Finland . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Finland. Could you tell me the answer for that?
(c(Q502895),P551,Q33)
Q33
[{'concept': 'Q502895'}, 'P551', 'Q33']
[{'concept': 'common name'}, 'residence', 'Finland']
[]
Q23045432
SYSTEM
Xiao Zhong
Q23045432
(c(Q502895),P551,Q33)
action filter_type
action find_reverse
entity Q33
relation P551
type Q502895
[ANSWER] has residence at that administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q33']
SELECT DISTINCT ?h WHERE { ?h property:P551 resource:Q33 . ?h rdf:type ontology:Q502895 }
Xiao Zhong
Xiao Zhong has residence at that administrative territory
Xiao Zhong
action filter_type
action find_reverse
entity Finland
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Finland']
SELECT DISTINCT ?h WHERE { ?h property:residence resource:Finland . ?h rdf:type ontology:common_name }
[]