Simple Question (Direct)
Simple Question
Q3181316
P1412
Q34770
USER
Which language is John D. Voelker capable of writing ?
(Q3181316,P1412,c(Q34770))
action filter_type
action find
entity Q3181316
relation P1412
type Q34770
['Q3181316', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q34770 . resource:Q3181316 property:P1412 ?p }
John D. Voelker
action filter_type
action find
entity John D. Voelker
relation languages spoken, written or signed
type language
['John D. Voelker', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:language . resource:John_D._Voelker property:languages_spoken,_written_or_signed ?p }
[]
language
Q1860
SYSTEM
English
Q1860
(Q3181316,P1412,c(Q34770))
action filter_type
action find
entity Q3181316
relation P1412
type Q34770
[ANSWER] is John D. Voelker capable of writing
['Q3181316', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q34770 . resource:Q3181316 property:P1412 ?p }
English
English is John D. Voelker capable of writing
English
action filter_type
action find
entity John D. Voelker
relation languages spoken, written or signed
type language
['John D. Voelker', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:language . resource:John_D._Voelker property:languages_spoken,_written_or_signed ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3181316
P21
Q290
USER
Which sex does that person possess ?
(Q1860,P21,c(Q290))
action filter_type
action find
entity Q3181316
relation P21
type Q290
['Q1860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q3181316 property:P21 ?d . ?d rdf:type ontology:Q290 }
John D. Voelker
action filter_type
action find
entity John D. Voelker
relation gender
type sex
['English', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:John_D._Voelker property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1860,P21,c(Q290))
action filter_type
action find
entity Q3181316
relation P21
type Q290
That person possesses a [ANSWER]
['Q1860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q3181316 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity John D. Voelker
relation gender
type sex
['English', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:John_D._Voelker property:gender ?d . ?d rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P282
Q2001982 Q8192 Q34770
USER
Which languages use min number of notations and writing systems as the writing system ?
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action argmin
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?h WHERE { ?w rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) ?e WHERE { { ?e property:P282 ?q . ?e rdf:type ontology:Q34770 . ?q rdf:type ontology:Q2001982 } UNION { ?e property:P282 ?q . ?e rdf:type ontology:Q34770 . ?q rdf:type ontology:Q8192 } } GROUP BY ?e } . FILTER ( ?d = ?a ) }
action argmin
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?h WHERE { ?w rdf:type ?k . VALUES ( ?k ) { ( ontology:notation ) ( ontology:writing_system ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) ?e WHERE { { ?e property:writing_system ?q . ?e rdf:type ontology:language . ?q rdf:type ontology:notation } UNION { ?e property:writing_system ?q . ?e rdf:type ontology:language . ?q rdf:type ontology:writing_system } } GROUP BY ?e } . FILTER ( ?d = ?a ) }
[]
notation writing system language
Q1860 Q447117 Q36708
SYSTEM
English, Old Egyptian, Norn
Q7102906 Q20832 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q13211 Q36741 Q35499 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q33879 Q7362035 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q1860 Q36116 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action argmin
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
[ANSWERS] use min number of notations and writing systems as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?h WHERE { ?w rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) ?e WHERE { { ?e property:P282 ?q . ?e rdf:type ontology:Q34770 . ?q rdf:type ontology:Q2001982 } UNION { ?e property:P282 ?q . ?e rdf:type ontology:Q34770 . ?q rdf:type ontology:Q8192 } } GROUP BY ?e } . FILTER ( ?d = ?a ) }
Orizaba Nahuatl Wailaki language Cahto language Old Gutnish Simplified Chinese Middle Polish Norn 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 Pangasinan language Roman Khowar Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish English Middle Irish Gaulish Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
English, Old Egyptian and Norn use min number of notations and writing systems as the writing system
English Old Egyptian Norn
action argmin
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?h WHERE { ?w rdf:type ?k . VALUES ( ?k ) { ( ontology:notation ) ( ontology:writing_system ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) ?e WHERE { { ?e property:writing_system ?q . ?e rdf:type ontology:language . ?q rdf:type ontology:notation } UNION { ?e property:writing_system ?q . ?e rdf:type ontology:language . ?q rdf:type ontology:writing_system } } GROUP BY ?e } . FILTER ( ?d = ?a ) }
[]