Simple Question (Direct)
Simple Question
Q963875
P1412
Q34770
USER
Which language is spoken by Francesco Trevisani ?
(Q963875,P1412,c(Q34770))
action filter_type
action find
entity Q963875
relation P1412
type Q34770
['Q963875', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q963875 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Francesco Trevisani
action filter_type
action find
entity Francesco Trevisani
relation languages spoken, written or signed
type language
['Francesco Trevisani', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Francesco_Trevisani property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q963875,P1412,c(Q34770))
action filter_type
action find
entity Q963875
relation P1412
type Q34770
Of [ANSWER] is spoken by Francesco Trevisani
['Q963875', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q963875 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Italian
Of Italian is spoken by Francesco Trevisani
Italian
action filter_type
action find
entity Francesco Trevisani
relation languages spoken, written or signed
type language
['Francesco Trevisani', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Francesco_Trevisani property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q963875
P734
Q82799
USER
Who has the surname that person ?
(Q652,P734,c(Q82799))
action filter_type
action find
entity Q963875
relation P734
type Q82799
['Q652', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q963875 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Francesco Trevisani
action filter_type
action find
entity Francesco Trevisani
relation family name
type name
['Italian', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Francesco_Trevisani property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q21509237
SYSTEM
Trevisani
Q21509237
(Q652,P734,c(Q82799))
action filter_type
action find
entity Q963875
relation P734
type Q82799
[ANSWER] has the surname that person
['Q652', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q963875 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Trevisani
Trevisani has the surname that person
Trevisani
action filter_type
action find
entity Francesco Trevisani
relation family name
type name
['Italian', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Francesco_Trevisani property:family_name ?n . ?n rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2090017 Q963875
P734 P735
Q82799
USER
Which names are associated with Francesco Trevisani or are forename of Eefje de Visser ?
OR((Q963875,P734,c(Q82799)), (Q2090017,P735,c(Q82799)))
action filter_type
action union
action find
entity Q963875
relation P734
action find
entity Q2090017
relation P735
type Q82799
{'OR': [['Q963875', 'P734', {'concept': 'Q82799'}], ['Q2090017', 'P735', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q963875 property:P734 ?c } UNION { resource:Q2090017 property:P735 ?c } } . ?c rdf:type ontology:Q82799 }
Eefje de Visser Francesco Trevisani
action filter_type
action union
action find
entity Francesco Trevisani
relation family name
action find
entity Eefje de Visser
relation given name
type name
{'OR': [['Francesco Trevisani', 'family name', {'concept': 'name'}], ['Eefje de Visser', 'given name', {'concept': 'name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Francesco_Trevisani property:family_name ?c } UNION { resource:Eefje_de_Visser property:given_name ?c } } . ?c rdf:type ontology:name }
[]
name
Q21142982 Q21509237
SYSTEM
Eefje, Trevisani
Q21142982 Q21509237
OR((Q963875,P734,c(Q82799)), (Q2090017,P735,c(Q82799)))
action filter_type
action union
action find
entity Q963875
relation P734
action find
entity Q2090017
relation P735
type Q82799
[ANSWERS] are associated with Francesco Trevisani or are forename of Eefje de Visser
{'OR': [['Q963875', 'P734', {'concept': 'Q82799'}], ['Q2090017', 'P735', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q963875 property:P734 ?c } UNION { resource:Q2090017 property:P735 ?c } } . ?c rdf:type ontology:Q82799 }
Eefje Trevisani
Eefje and Trevisani are associated with Francesco Trevisani or are forename of Eefje de Visser
Eefje Trevisani
action filter_type
action union
action find
entity Francesco Trevisani
relation family name
action find
entity Eefje de Visser
relation given name
type name
{'OR': [['Francesco Trevisani', 'family name', {'concept': 'name'}], ['Eefje de Visser', 'given name', {'concept': 'name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Francesco_Trevisani property:family_name ?c } UNION { resource:Eefje_de_Visser property:given_name ?c } } . ?c rdf:type ontology:name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q397
P407
Q34770 Q82799
USER
Which languages are less number of names in than Latin ?
(c(Q82799),P407,c(Q34770))
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q397
relation P407
type Q82799
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:P407 ?d . ?d rdf:type ontology:Q34770 . ?r rdf:type ontology:Q82799 } GROUP BY ?d } . FILTER ( ?m < ?f ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { ?l property:P407 resource:Q397 . ?l rdf:type ontology:Q82799 } } }
Latin
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find_reverse
entity Latin
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:language_of_work_or_name ?d . ?d rdf:type ontology:language . ?r rdf:type ontology:name } GROUP BY ?d } . FILTER ( ?m < ?f ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { ?l property:language_of_work_or_name resource:Latin . ?l rdf:type ontology:name } } }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q37041 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q397
relation P407
type Q82799
[ANSWERS] are less number of names in than Latin
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:P407 ?d . ?d rdf:type ontology:Q34770 . ?r rdf:type ontology:Q82799 } GROUP BY ?d } . FILTER ( ?m < ?f ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { ?l property:P407 resource:Q397 . ?l rdf:type ontology:Q82799 } } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse classical Chinese Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are less number of names in than Latin
Old Egyptian Old Church Slavonic Etruscan
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find_reverse
entity Latin
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:language_of_work_or_name ?d . ?d rdf:type ontology:language . ?r rdf:type ontology:name } GROUP BY ?d } . FILTER ( ?m < ?f ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { ?l property:language_of_work_or_name resource:Latin . ?l rdf:type ontology:name } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P282
Q8192 Q34770
USER
How many languages are approximately the same number of writing systems the writing system of as that language ?
(c(Q34770),P282,c(Q8192))
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q8192 ?y . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 }
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:writing_system ?y . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system }
[]
writing system language
Comparative|Count over More/Less|Single entity type|Clarification
Q35726
SYSTEM
Did you mean Etruscan ?
(c(Q34770),P282,c(Q8192))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q8192 ?y . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 }
Did you mean Etruscan ?
Etruscan
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:writing_system ?y . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q34770),P282,c(Q8192))
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
[]
SYSTEM
56
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q13211 Q36741 Q35499 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q8192))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q8192 ?y . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Ruthenian Polabian Old Church Slavonic Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Church Slavonic Traditional Chinese Serbian written in Cyrillic Slavoserbian Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
56
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:writing_system ?y . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q963875
P21
Q290
USER
What is the sex of Francesco Trevisani ?
(Q963875,P21,c(Q290))
action filter_type
action find
entity Q963875
relation P21
type Q290
['Q963875', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q963875 property:P21 ?q . ?q rdf:type ontology:Q290 }
Francesco Trevisani
action filter_type
action find
entity Francesco Trevisani
relation gender
type sex
['Francesco Trevisani', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Francesco_Trevisani property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q963875,P21,c(Q290))
action filter_type
action find
entity Q963875
relation P21
type Q290
The sex of Francesco Trevisani is the [ANSWER]
['Q963875', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q963875 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of Francesco Trevisani is the male
male
action filter_type
action find
entity Francesco Trevisani
relation gender
type sex
['Francesco Trevisani', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Francesco_Trevisani property:gender ?q . ?q rdf:type ontology:sex }
[]
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 atmost 27 names ?
(c(Q82799),P407,c(Q34770))
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 27
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?l ) WHERE { ?w rdf:type ontology:Q34770 . ?j rdf:type ontology:Q82799 . ?j property:P407 ?w } GROUP BY ?w } . FILTER ( ?l <= 27 ) }
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 27
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?l ) WHERE { ?w rdf:type ontology:language . ?j rdf:type ontology:name . ?j property:language_of_work_or_name ?w } GROUP BY ?w } . FILTER ( ?l <= 27 ) }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 27
[ANSWERS] are the languages of work for atmost 27 names
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?l ) WHERE { ?w rdf:type ontology:Q34770 . ?j rdf:type ontology:Q82799 . ?j property:P407 ?w } GROUP BY ?w } . FILTER ( ?l <= 27 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for atmost 27 names
Old Egyptian Old Church Slavonic Etruscan
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 27
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?l ) WHERE { ?w rdf:type ontology:language . ?j rdf:type ontology:name . ?j property:language_of_work_or_name ?w } GROUP BY ?w } . FILTER ( ?l <= 27 ) }
[]