Simple Question (Direct)
Simple Question
Q769600
P106
Q151885
USER
What is the job of Ted Gioia ?
(Q769600,P106,c(Q151885))
action filter_type
action find
entity Q769600
relation P106
type Q151885
['Q769600', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { resource:Q769600 property:P106 ?q . ?q rdf:type ontology:Q151885 }
Ted Gioia
action filter_type
action find
entity Ted Gioia
relation occupation
type concept
['Ted Gioia', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { resource:Ted_Gioia property:occupation ?q . ?q rdf:type ontology:concept }
[]
concept
Q482980
SYSTEM
author
Q482980
(Q769600,P106,c(Q151885))
action filter_type
action find
entity Q769600
relation P106
type Q151885
The job of Ted Gioia is an [ANSWER]
['Q769600', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { resource:Q769600 property:P106 ?q . ?q rdf:type ontology:Q151885 }
author
The job of Ted Gioia is an author
author
action filter_type
action find
entity Ted Gioia
relation occupation
type concept
['Ted Gioia', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { resource:Ted_Gioia property:occupation ?q . ?q rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q769600
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q482980,P1412,c(Q34770))
action filter_type
action find
entity Q769600
relation P1412
type Q34770
['Q482980', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q769600 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Ted Gioia
action filter_type
action find
entity Ted Gioia
relation languages spoken, written or signed
type language
['author', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Ted_Gioia property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q482980,P1412,c(Q34770))
action filter_type
action find
entity Q769600
relation P1412
type Q34770
[ANSWER] is that person capable of writing
['Q482980', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q769600 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
English
English is that person capable of writing
English
action filter_type
action find
entity Ted Gioia
relation languages spoken, written or signed
type language
['author', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Ted_Gioia property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q5329170 Q35984
P361
Q5962346
USER
Is that language a part of Anglo-Frisian languages and Maban languages ?
(Q1860,P361,Q5329170) (Q1860,P361,Q35984)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q35984
relation P361
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q35984']
ASK WHERE { resource:Q1860 property:P361 resource:Q5329170 . resource:Q1860 property:P361 resource:Q35984 }
English Anglo-Frisian languages Maban languages
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity Maban languages
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'Maban languages']
ASK WHERE { resource:English property:part_of resource:Anglo-Frisian_languages . resource:English property:part_of resource:Maban_languages }
[]
classification scheme
SYSTEM
YES and NO respectively
(Q1860,P361,Q5329170) (Q1860,P361,Q35984)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q35984
relation P361
[ANSWER]
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q35984']
ASK WHERE { resource:Q1860 property:P361 resource:Q5329170 . resource:Q1860 property:P361 resource:Q35984 }
YES and NO respectively
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity Maban languages
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'Maban languages']
ASK WHERE { resource:English property:part_of resource:Anglo-Frisian_languages . resource:English property:part_of resource:Maban_languages }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1860 Q373306
P725
Q11424
USER
How many films have been dubbed by English or Alan Napier ?
(c(Q11424),P725,Q1860) (c(Q11424),P725,Q373306)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P725
type Q11424
action filter_type
action find_reverse
entity Q373306
relation P725
type Q11424
[{'concept': 'Q11424'}, 'P725', 'Q1860'] [{'concept': 'Q11424'}, 'P725', 'Q373306']
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { ?f rdf:type ontology:Q11424 . ?f property:P725 resource:Q373306 } UNION { ?f property:P725 resource:Q1860 . ?f rdf:type ontology:Q11424 } }
English Alan Napier
action count
action union
action filter_type
action find_reverse
entity English
relation voice actor
type film
action filter_type
action find_reverse
entity Alan Napier
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', 'English'] [{'concept': 'film'}, 'voice actor', 'Alan Napier']
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { ?f rdf:type ontology:film . ?f property:voice_actor resource:Alan_Napier } UNION { ?f property:voice_actor resource:English . ?f rdf:type ontology:film } }
[]
film
SYSTEM
2
Q9019373 Q204662
(c(Q11424),P725,Q1860) (c(Q11424),P725,Q373306)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P725
type Q11424
action filter_type
action find_reverse
entity Q373306
relation P725
type Q11424
[ANSWER]
[{'concept': 'Q11424'}, 'P725', 'Q1860'] [{'concept': 'Q11424'}, 'P725', 'Q373306']
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { ?f rdf:type ontology:Q11424 . ?f property:P725 resource:Q373306 } UNION { ?f property:P725 resource:Q1860 . ?f rdf:type ontology:Q11424 } }
The Legend of the North Wind The Sword in the Stone
2
action count
action union
action filter_type
action find_reverse
entity English
relation voice actor
type film
action filter_type
action find_reverse
entity Alan Napier
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', 'English'] [{'concept': 'film'}, 'voice actor', 'Alan Napier']
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { ?f rdf:type ontology:film . ?f property:voice_actor resource:Alan_Napier } UNION { ?f property:voice_actor resource:English . ?f rdf:type ontology:film } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P282
Q2001982 Q34770
USER
How many notations are utilized as the script for atmost 3 languages ?
(c(Q34770),P282,c(Q2001982))
action count
action atmost
action find_reverse_tuple_counts
relation P282
type Q2001982
type Q34770
value 3
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q2001982'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P282 ?g . ?g rdf:type ontology:Q2001982 . ?b rdf:type ontology:Q34770 } GROUP BY ?g } . FILTER ( ?s <= 3 ) }
action count
action atmost
action find_reverse_tuple_counts
relation writing system
type notation
type language
value 3
[{'concept': 'language'}, 'writing system', {'concept': 'notation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:writing_system ?g . ?g rdf:type ontology:notation . ?b rdf:type ontology:language } GROUP BY ?g } . FILTER ( ?s <= 3 ) }
[]
notation language
SYSTEM
21
Q3544702 Q82772 Q2003257 Q1828555 Q321083 Q473725 Q209764 Q8216 Q187659 Q208503 Q13586477 Q1771716 Q26978 Q3322653 Q1089000 Q790681 Q752854 Q185083 Q401 Q806024 Q2479183
(c(Q34770),P282,c(Q2001982))
action count
action atmost
action find_reverse_tuple_counts
relation P282
type Q2001982
type Q34770
value 3
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q2001982'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P282 ?g . ?g rdf:type ontology:Q2001982 . ?b rdf:type ontology:Q34770 } GROUP BY ?g } . FILTER ( ?s <= 3 ) }
Manichaean alphabet kanji Cirth Arabic script Coptic alphabet Tengwar Rongorongo Greek alphabet kana Tifinagh Cantonese Braille Pahlavi scripts Aramaic alphabet Southwest Paleohispanic script Sarati Avestan alphabet Sui script Brahmi script cuneiform Bamum script Canadian Aboriginal syllabics
21
action count
action atmost
action find_reverse_tuple_counts
relation writing system
type notation
type language
value 3
[{'concept': 'language'}, 'writing system', {'concept': 'notation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:writing_system ?g . ?g rdf:type ontology:notation . ?b rdf:type ontology:language } GROUP BY ?g } . FILTER ( ?s <= 3 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P407
Q34770 Q234460 Q2031291
USER
How many languages are the languages of work for atmost 2076 texts and releases ?
(c(Q234460)|c(Q2031291),P407,c(Q34770))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
value 2076
[[{'concept': 'Q234460'}, {'concept': 'Q2031291'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:Q234460 ) ( ontology:Q2031291 ) } } GROUP BY ?y } . FILTER ( ?l <= 2076 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action find_reverse_tuple_counts
relation language of work or name
type language
type release
value 2076
[[{'concept': 'text'}, {'concept': 'release'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:text ) ( ontology:release ) } } GROUP BY ?y } . FILTER ( ?l <= 2076 ) }
[]
language text release
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q234460)|c(Q2031291),P407,c(Q34770))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
value 2076
[ANSWER]
[[{'concept': 'Q234460'}, {'concept': 'Q2031291'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:Q234460 ) ( ontology:Q2031291 ) } } GROUP BY ?y } . FILTER ( ?l <= 2076 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action atmost
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action find_reverse_tuple_counts
relation language of work or name
type language
type release
value 2076
[[{'concept': 'text'}, {'concept': 'release'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:text ) ( ontology:release ) } } GROUP BY ?y } . FILTER ( ?l <= 2076 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q9056
P37
Q34770 Q1048835 Q56061
USER
Which languages are the official languages of approximately the same number of political territories and administrative territories as Czech ?
(c(Q1048835)|c(Q56061),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q9056
relation P37
type Q1048835
type Q56061
[[{'concept': 'Q1048835'}, {'concept': 'Q56061'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?u = ?l ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P37 resource:Q9056 . { { ?c rdf:type ontology:Q1048835 } UNION { ?c rdf:type ontology:Q56061 } } } } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?f WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } } GROUP BY ?f } }
Czech
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Czech
relation official language
type political territorial entity
type administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?u = ?l ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:official_language resource:Czech . { { ?c rdf:type ontology:political_territorial_entity } UNION { ?c rdf:type ontology:administrative_territorial_entity } } } } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?f WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?f } }
[]
language political territorial entity administrative territorial entity
Q9056 Q33251 Q8752
SYSTEM
Czech, Church Slavonic, Basque
Q9056 Q33251 Q13211 Q3110592 Q36206 Q8752 Q36880 Q33976 Q35499 Q397 Q35726 Q8785 Q25164
(c(Q1048835)|c(Q56061),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q9056
relation P37
type Q1048835
type Q56061
[ANSWERS] are the official languages of approximately the same number of political territories and administrative territories as Czech
[[{'concept': 'Q1048835'}, {'concept': 'Q56061'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?u = ?l ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P37 resource:Q9056 . { { ?c rdf:type ontology:Q1048835 } UNION { ?c rdf:type ontology:Q56061 } } } } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?f WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } } GROUP BY ?f } }
Czech Church Slavonic Ruthenian written Chinese Lak Basque Bulgar language Sardinian language Old Church Slavonic Latin Etruscan Armenian Nynorsk
Czech, Church Slavonic and Basque are the official languages of approximately the same number of political territories and administrative territories as Czech
Czech Church Slavonic Basque
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Czech
relation official language
type political territorial entity
type administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?u = ?l ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:official_language resource:Czech . { { ?c rdf:type ontology:political_territorial_entity } UNION { ?c rdf:type ontology:administrative_territorial_entity } } } } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?f WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?f } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q36206
P37
Q34770 Q1048835 Q56061
USER
And also tell me about Lak?
(c(Q1048835)|c(Q56061),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q36206
relation P37
type Q1048835
type Q56061
[[{'concept': 'Q1048835'}, {'concept': 'Q56061'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?t ) WHERE { VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } . ?j rdf:type ?e } GROUP BY ?n } . FILTER ( ?t = ?u ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:P37 resource:Q36206 . { { ?k rdf:type ontology:Q56061 } UNION { ?k rdf:type ontology:Q1048835 } } } } }
Lak
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Lak
relation official language
type political territorial entity
type administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?t ) WHERE { VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } . ?j rdf:type ?e } GROUP BY ?n } . FILTER ( ?t = ?u ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:official_language resource:Lak . { { ?k rdf:type ontology:administrative_territorial_entity } UNION { ?k rdf:type ontology:political_territorial_entity } } } } }
[]
language political territorial entity administrative territorial entity
Q9056 Q33251 Q8752
SYSTEM
Czech, Church Slavonic, Basque
Q9056 Q33251 Q13211 Q3110592 Q36206 Q8752 Q36880 Q33976 Q35499 Q397 Q35726 Q8785 Q25164
(c(Q1048835)|c(Q56061),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q36206
relation P37
type Q1048835
type Q56061
[ANSWERS]
[[{'concept': 'Q1048835'}, {'concept': 'Q56061'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?t ) WHERE { VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } . ?j rdf:type ?e } GROUP BY ?n } . FILTER ( ?t = ?u ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:P37 resource:Q36206 . { { ?k rdf:type ontology:Q56061 } UNION { ?k rdf:type ontology:Q1048835 } } } } }
Czech Church Slavonic Ruthenian written Chinese Lak Basque Bulgar language Sardinian language Old Church Slavonic Latin Etruscan Armenian Nynorsk
Czech Church Slavonic Basque
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Lak
relation official language
type political territorial entity
type administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?t ) WHERE { VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } . ?j rdf:type ?e } GROUP BY ?n } . FILTER ( ?t = ?u ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:official_language resource:Lak . { { ?k rdf:type ontology:administrative_territorial_entity } UNION { ?k rdf:type ontology:political_territorial_entity } } } } }
[]