Simple Question (Direct)
Simple Question
Q5549676
P102
Q7210356
USER
Which party does Gerald Wellington Williams belong to ?
(Q5549676,P102,c(Q7210356))
action filter_type
action find
entity Q5549676
relation P102
type Q7210356
['Q5549676', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . resource:Q5549676 property:P102 ?j }
Gerald Wellington Williams
action filter_type
action find
entity Gerald Wellington Williams
relation member of political party
type political organization
['Gerald Wellington Williams', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . resource:Gerald_Wellington_Williams property:member_of_political_party ?j }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q5549676,P102,c(Q7210356))
action filter_type
action find
entity Q5549676
relation P102
type Q7210356
Gerald Wellington Williams belongs to [ANSWER]
['Q5549676', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . resource:Q5549676 property:P102 ?j }
Conservative Party
Gerald Wellington Williams belongs to Conservative Party
Conservative Party
action filter_type
action find
entity Gerald Wellington Williams
relation member of political party
type political organization
['Gerald Wellington Williams', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . resource:Gerald_Wellington_Williams property:member_of_political_party ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5549676
P734
Q82799
USER
Which name is associated with Gerald Wellington Williams ?
(Q5549676,P734,c(Q82799))
action filter_type
action find
entity Q5549676
relation P734
type Q82799
['Q5549676', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q82799 . resource:Q5549676 property:P734 ?m }
Gerald Wellington Williams
action filter_type
action find
entity Gerald Wellington Williams
relation family name
type name
['Gerald Wellington Williams', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:name . resource:Gerald_Wellington_Williams property:family_name ?m }
[]
name
Q1688722
SYSTEM
Williams
Q1688722
(Q5549676,P734,c(Q82799))
action filter_type
action find
entity Q5549676
relation P734
type Q82799
[ANSWER] is associated with Gerald Wellington [ANSWER]
['Q5549676', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q82799 . resource:Q5549676 property:P734 ?m }
Williams
Williams is associated with Gerald Wellington Williams
Williams
action filter_type
action find
entity Gerald Wellington Williams
relation family name
type name
['Gerald Wellington Williams', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:name . resource:Gerald_Wellington_Williams property:family_name ?m }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
Which languages are atmost 51 names composed in ?
(c(Q82799),P407,c(Q34770))
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 51
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?w ) WHERE { ?y rdf:type ontology:Q34770 . ?a rdf:type ontology:Q82799 . ?a property:P407 ?y } GROUP BY ?y } . FILTER ( ?w <= 51 ) }
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 51
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?w ) WHERE { ?y rdf:type ontology:language . ?a rdf:type ontology:name . ?a property:language_of_work_or_name ?y } GROUP BY ?y } . FILTER ( ?w <= 51 ) }
[]
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 51
[ANSWERS]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?w ) WHERE { ?y rdf:type ontology:Q34770 . ?a rdf:type ontology:Q82799 . ?a property:P407 ?y } GROUP BY ?y } . FILTER ( ?w <= 51 ) }
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 Etruscan
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 51
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?w ) WHERE { ?y rdf:type ontology:language . ?a rdf:type ontology:name . ?a property:language_of_work_or_name ?y } GROUP BY ?y } . FILTER ( ?w <= 51 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P282
Q9779 Q8192 Q34770
USER
Which languages have writing system as greater number of alphabets and writing systems than that language ?
(c(Q34770),P282,c(Q9779)|c(Q8192))
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q8192 ?y } UNION { ?z property:Q8192 ?x } } . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q9779 . ?x rdf:type ontology:Q8192 }
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:writing_system ?y } UNION { ?z property:writing_system ?x } } . ?z rdf:type ontology:language . ?y rdf:type ontology:alphabet . ?x rdf:type ontology:writing_system }
[]
alphabet writing system language
Comparative|More/Less|Mult. entity type|Clarification
Q35499
SYSTEM
Did you mean Old Church Slavonic ?
(c(Q34770),P282,c(Q9779)|c(Q8192))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q8192 ?y } UNION { ?z property:Q8192 ?x } } . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q9779 . ?x rdf:type ontology:Q8192 }
Did you mean Old Church Slavonic ?
Old Church Slavonic
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:writing_system ?y } UNION { ?z property:writing_system ?x } } . ?z rdf:type ontology:language . ?y rdf:type ontology:alphabet . ?x rdf:type ontology:writing_system }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q34770),P282,c(Q9779)|c(Q8192))
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
[]
SYSTEM
9
Q182695 Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q8192))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q8192 ?y } UNION { ?z property:Q8192 ?x } } . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q9779 . ?x rdf:type ontology:Q8192 }
Late Old Japanese Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
9
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:writing_system ?y } UNION { ?z property:writing_system ?x } } . ?z rdf:type ontology:language . ?y rdf:type ontology:alphabet . ?x rdf:type ontology:writing_system }
[]