Simple Question (Direct)
Simple Question
Q3083757
P21
Q290
USER
What is the sex of François Émile Michel ?
(Q3083757,P21,c(Q290))
action filter_type
action find
entity Q3083757
relation P21
type Q290
['Q3083757', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q3083757 property:P21 ?i . ?i rdf:type ontology:Q290 }
François Émile Michel
action filter_type
action find
entity François Émile Michel
relation gender
type sex
['François Émile Michel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:François_Émile_Michel property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3083757,P21,c(Q290))
action filter_type
action find
entity Q3083757
relation P21
type Q290
The sex of François Émile Michel is a [ANSWER]
['Q3083757', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q3083757 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of François Émile Michel is a male
male
action filter_type
action find
entity François Émile Michel
relation gender
type sex
['François Émile Michel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:François_Émile_Michel property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3083757
P734
Q82799
USER
Who has the surname that person ?
(Q6581097,P734,c(Q82799))
action filter_type
action find
entity Q3083757
relation P734
type Q82799
['Q6581097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q3083757 property:P734 ?d . ?d rdf:type ontology:Q82799 }
François Émile Michel
action filter_type
action find
entity François Émile Michel
relation family name
type name
['male', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:François_Émile_Michel property:family_name ?d . ?d rdf:type ontology:name }
[]
name
Q12036851
SYSTEM
Michel
Q12036851
(Q6581097,P734,c(Q82799))
action filter_type
action find
entity Q3083757
relation P734
type Q82799
[ANSWER] has the surname that person
['Q6581097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q3083757 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Michel
Michel has the surname that person
Michel
action filter_type
action find
entity François Émile Michel
relation family name
type name
['male', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:François_Émile_Michel property:family_name ?d . ?d rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
Which languages are the languages of work for exactly 1 name ?
(c(Q82799),P407,c(Q34770))
action equal
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 1
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P407 ?i . ?z rdf:type ontology:Q82799 . ?i rdf:type ontology:Q34770 } GROUP BY ?i } . FILTER ( ?y = 1 ) }
action equal
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 1
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:language_of_work_or_name ?i . ?z rdf:type ontology:name . ?i rdf:type ontology:language } GROUP BY ?i } . FILTER ( ?y = 1 ) }
[]
language name
Q56982 Q35308
SYSTEM
Judaeo-Portuguese, Old Irish
Q56982 Q35308
(c(Q82799),P407,c(Q34770))
action equal
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 1
[ANSWERS] are the languages of work for exactly 1 name
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P407 ?i . ?z rdf:type ontology:Q82799 . ?i rdf:type ontology:Q34770 } GROUP BY ?i } . FILTER ( ?y = 1 ) }
Judaeo-Portuguese Old Irish
Judaeo-Portuguese and Old Irish are the languages of work for exactly 1 name
Judaeo-Portuguese Old Irish
action equal
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 1
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:language_of_work_or_name ?i . ?z rdf:type ontology:name . ?i rdf:type ontology:language } GROUP BY ?i } . FILTER ( ?y = 1 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q56982 Q35308
P407
Q82799
USER
Which names are composed in Judaeo-Portuguese and Old Irish ?
(c(Q82799),P407,Q56982) (c(Q82799),P407,Q35308)
action union
action filter_type
action find_reverse
entity Q56982
relation P407
type Q82799
action filter_type
action find_reverse
entity Q35308
relation P407
type Q82799
[{'concept': 'Q82799'}, 'P407', 'Q56982'] [{'concept': 'Q82799'}, 'P407', 'Q35308']
SELECT DISTINCT ?s WHERE { VALUES ( ?k ) { ( resource:Q56982 ) ( resource:Q35308 ) } . ?s property:P407 ?k }
Judaeo-Portuguese Old Irish
action union
action filter_type
action find_reverse
entity Judaeo-Portuguese
relation language of work or name
type name
action filter_type
action find_reverse
entity Old Irish
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', 'Judaeo-Portuguese'] [{'concept': 'name'}, 'language of work or name', 'Old Irish']
SELECT DISTINCT ?s WHERE { VALUES ( ?k ) { ( resource:Judaeo-Portuguese ) ( resource:Old_Irish ) } . ?s property:language_of_work_or_name ?k }
[]
name
Q19891513 Q7488820
SYSTEM
Fonseca, Shannon
Q19891513 Q7488820
(c(Q82799),P407,Q56982) (c(Q82799),P407,Q35308)
action union
action filter_type
action find_reverse
entity Q56982
relation P407
type Q82799
action filter_type
action find_reverse
entity Q35308
relation P407
type Q82799
[ANSWERS] are composed in Judaeo-Portuguese and Old Irish
[{'concept': 'Q82799'}, 'P407', 'Q56982'] [{'concept': 'Q82799'}, 'P407', 'Q35308']
SELECT DISTINCT ?s WHERE { VALUES ( ?k ) { ( resource:Q56982 ) ( resource:Q35308 ) } . ?s property:P407 ?k }
Fonseca Shannon
Fonseca and Shannon are composed in Judaeo-Portuguese and Old Irish
Fonseca Shannon
action union
action filter_type
action find_reverse
entity Judaeo-Portuguese
relation language of work or name
type name
action filter_type
action find_reverse
entity Old Irish
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', 'Judaeo-Portuguese'] [{'concept': 'name'}, 'language of work or name', 'Old Irish']
SELECT DISTINCT ?s WHERE { VALUES ( ?k ) { ( resource:Judaeo-Portuguese ) ( resource:Old_Irish ) } . ?s property:language_of_work_or_name ?k }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q19891513 Q7488820
P407
Q34770
USER
What are the languages of work for Fonseca and Shannon ?
(Q19891513,P407,c(Q34770)) (Q7488820,P407,c(Q34770))
action union
action filter_type
action find
entity Q19891513
relation P407
type Q34770
action filter_type
action find
entity Q7488820
relation P407
type Q34770
['Q19891513', 'P407', {'concept': 'Q34770'}] ['Q7488820', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { resource:Q19891513 property:P407 ?y . ?y rdf:type ontology:Q34770 } UNION { resource:Q7488820 property:P407 ?y . ?y rdf:type ontology:Q34770 } }
Fonseca Shannon
action union
action filter_type
action find
entity Fonseca
relation language of work or name
type language
action filter_type
action find
entity Shannon
relation language of work or name
type language
['Fonseca', 'language of work or name', {'concept': 'language'}] ['Shannon', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { resource:Fonseca property:language_of_work_or_name ?y . ?y rdf:type ontology:language } UNION { resource:Shannon property:language_of_work_or_name ?y . ?y rdf:type ontology:language } }
[]
language
Q56982 Q1321 Q35308
SYSTEM
Judaeo-Portuguese, Spanish, Old Irish
Q56982 Q1321 Q35308
(Q19891513,P407,c(Q34770)) (Q7488820,P407,c(Q34770))
action union
action filter_type
action find
entity Q19891513
relation P407
type Q34770
action filter_type
action find
entity Q7488820
relation P407
type Q34770
The languages of work for Fonseca and Shannon are [ANSWERS]
['Q19891513', 'P407', {'concept': 'Q34770'}] ['Q7488820', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { resource:Q19891513 property:P407 ?y . ?y rdf:type ontology:Q34770 } UNION { resource:Q7488820 property:P407 ?y . ?y rdf:type ontology:Q34770 } }
Judaeo-Portuguese Spanish Old Irish
The languages of work for Fonseca and Shannon are Judaeo-Portuguese, Spanish and Old Irish
Judaeo-Portuguese Spanish Old Irish
action union
action filter_type
action find
entity Fonseca
relation language of work or name
type language
action filter_type
action find
entity Shannon
relation language of work or name
type language
['Fonseca', 'language of work or name', {'concept': 'language'}] ['Shannon', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { resource:Fonseca property:language_of_work_or_name ?y . ?y rdf:type ontology:language } UNION { resource:Shannon property:language_of_work_or_name ?y . ?y rdf:type ontology:language } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P103
Q34770 Q502895
USER
How many languages are native to greater number of people than that language ?
(c(Q502895),P103,c(Q34770))
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P103 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34770 }
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:native_language ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:language }
[]
language common name
Comparative|Count over More/Less|Single entity type|Clarification
Q1321
SYSTEM
Did you mean Spanish ?
(c(Q502895),P103,c(Q34770))
[ANSWER]
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P103 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34770 }
Did you mean Spanish ?
Spanish
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:native_language ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P103,c(Q34770))
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
[]
SYSTEM
1
Q1860
(c(Q502895),P103,c(Q34770))
[ANSWER]
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P103 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34770 }
English
1
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:native_language ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:language }
[]