Simple Question (Direct)
Simple Question
Q1044523
P58
Q502895
USER
Who served as the screenwriter for Office Space ?
(Q1044523,P58,c(Q502895))
action filter_type
action find
entity Q1044523
relation P58
type Q502895
['Q1044523', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q1044523 property:P58 ?r . ?r rdf:type ontology:Q502895 }
Office Space
action filter_type
action find
entity Office Space
relation screenwriter
type common name
['Office Space', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Office_Space property:screenwriter ?r . ?r rdf:type ontology:common_name }
[]
common name
Q434585
SYSTEM
Mike Judge
Q434585
(Q1044523,P58,c(Q502895))
action filter_type
action find
entity Q1044523
relation P58
type Q502895
As [ANSWER] served as the screenwriter for Office Space
['Q1044523', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q1044523 property:P58 ?r . ?r rdf:type ontology:Q502895 }
Mike Judge
As Mike Judge served as the screenwriter for Office Space
Mike Judge
action filter_type
action find
entity Office Space
relation screenwriter
type common name
['Office Space', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Office_Space property:screenwriter ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q434585
P1412
Q34770
USER
Which language does that person speak in ?
(Q434585,P1412,c(Q34770))
action filter_type
action find
entity Q434585
relation P1412
type Q34770
['Q434585', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q434585 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Mike Judge
action filter_type
action find
entity Mike Judge
relation languages spoken, written or signed
type language
['Mike Judge', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Mike_Judge property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q434585,P1412,c(Q34770))
action filter_type
action find
entity Q434585
relation P1412
type Q34770
That person speaks a [ANSWER]
['Q434585', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q434585 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Spanish
That person speaks a Spanish
Spanish
action filter_type
action find
entity Mike Judge
relation languages spoken, written or signed
type language
['Mike Judge', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Mike_Judge property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P103
Q34770 Q502895
USER
How many languages are the mother tongues of less number of people than that language ?
(c(Q502895),P103,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find_reverse
entity Q1321
relation P103
type Q502895
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P103 ?x . ?x rdf:type ontology:Q34770 . ?o rdf:type ontology:Q502895 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P103 resource:Q1321 . ?d rdf:type ontology:Q502895 } } . FILTER ( ?g < ?r ) }
action count
action less
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find_reverse
entity Spanish
relation native language
type common name
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:native_language ?x . ?x rdf:type ontology:language . ?o rdf:type ontology:common_name } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:native_language resource:Spanish . ?d rdf:type ontology:common_name } } . FILTER ( ?g < ?r ) }
[]
language common name
SYSTEM
8
Q3200839 Q9056 Q652 Q8752 Q13211 Q397 Q8785 Q25164
(c(Q502895),P103,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find_reverse
entity Q1321
relation P103
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P103 ?x . ?x rdf:type ontology:Q34770 . ?o rdf:type ontology:Q502895 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P103 resource:Q1321 . ?d rdf:type ontology:Q502895 } } . FILTER ( ?g < ?r ) }
Kwaza language Czech Italian Basque Ruthenian Latin Armenian Nynorsk
8
action count
action less
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find_reverse
entity Spanish
relation native language
type common name
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:native_language ?x . ?x rdf:type ontology:language . ?o rdf:type ontology:common_name } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:native_language resource:Spanish . ?d rdf:type ontology:common_name } } . FILTER ( ?g < ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q953432
P37
Q34770 Q7275
USER
How many states are known to have more number of languages as their official language than Couto Misto ?
(c(Q7275),P37,c(Q34770))
action count
action greater
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q953432
relation P37
type Q7275
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?h ) WHERE { ?r rdf:type ontology:Q7275 . ?w rdf:type ontology:Q34770 . ?r property:P37 ?w } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ontology:Q7275 . resource:Q953432 property:P37 ?p } } . FILTER ( ?h > ?u ) }
Couto Misto
action count
action greater
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Couto Misto
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?h ) WHERE { ?r rdf:type ontology:state . ?w rdf:type ontology:language . ?r property:official_language ?w } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ontology:state . resource:Couto_Misto property:official_language ?p } } . FILTER ( ?h > ?u ) }
[]
language state
SYSTEM
6
Q1194329 Q947153 Q172107 Q4948 Q19801186 Q49683
(c(Q7275),P37,c(Q34770))
action count
action greater
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q953432
relation P37
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?h ) WHERE { ?r rdf:type ontology:Q7275 . ?w rdf:type ontology:Q34770 . ?r property:P37 ?w } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ontology:Q7275 . resource:Q953432 property:P37 ?p } } . FILTER ( ?h > ?u ) }
Nova Roma Kingdom of Tavolara Polish–Lithuanian Commonwealth Republic of Venice Liberland Grand Duchy of Lithuania
6
action count
action greater
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Couto Misto
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?h ) WHERE { ?r rdf:type ontology:state . ?w rdf:type ontology:language . ?r property:official_language ?w } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ontology:state . resource:Couto_Misto property:official_language ?p } } . FILTER ( ?h > ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3456417
P37
Q34770 Q7275
USER
And also tell me about Republic of Saint-Malo?
(c(Q7275),P37,c(Q34770))
action count
action greater
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q3456417
relation P37
type Q7275
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { ?h property:P37 ?b . ?h rdf:type ontology:Q7275 . ?b rdf:type ontology:Q34770 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Q3456417 property:P37 ?s . ?s rdf:type ontology:Q7275 } } . FILTER ( ?o > ?y ) }
Republic of Saint-Malo
action count
action greater
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Republic of Saint-Malo
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { ?h property:official_language ?b . ?h rdf:type ontology:state . ?b rdf:type ontology:language } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Republic_of_Saint-Malo property:official_language ?s . ?s rdf:type ontology:state } } . FILTER ( ?o > ?y ) }
[]
language state
SYSTEM
29
Q105092 Q6083755 Q33946 Q1194329 Q947153 Q172107 Q1152445 Q1617495 Q185488 Q25279 Q4948 Q1322229 Q953432 Q2353425 Q1709185 Q7251405 Q746443 Q1123960 Q1423680 Q1083009 Q26988 Q26273 Q551798 Q19801186 Q188586 Q204920 Q25227 Q744042 Q49683
(c(Q7275),P37,c(Q34770))
action count
action greater
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q3456417
relation P37
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { ?h property:P37 ?b . ?h rdf:type ontology:Q7275 . ?b rdf:type ontology:Q34770 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Q3456417 property:P37 ?s . ?s rdf:type ontology:Q7275 } } . FILTER ( ?o > ?y ) }
Kingdom of Mercia Islands of Refreshment Czechoslovakia Nova Roma Kingdom of Tavolara Polish–Lithuanian Commonwealth Aerican Empire Kingdom of Jaén Volga Bulgaria Curaçao Republic of Venice Enlightenment in Spain Couto Misto Talossa Kingdom of Spain under Joseph Bonaparte Protectorate of Peru Golden Ambrosian Republic Conch Republic Gay and Lesbian Kingdom of the Coral Sea Islands Principality of Wy Cook Islands Sint Maarten Grand Duchy of Flandrensis Liberland Kingdom of Sicily Crown of Aragon Netherlands Antilles Grand Duchy of Avram Grand Duchy of Lithuania
29
action count
action greater
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Republic of Saint-Malo
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { ?h property:official_language ?b . ?h rdf:type ontology:state . ?b rdf:type ontology:language } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Republic_of_Saint-Malo property:official_language ?s . ?s rdf:type ontology:state } } . FILTER ( ?o > ?y ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P282
Q9779 Q8192 Q34770
USER
Which languages adopt max number of alphabets and writing systems as the writing system ?
(c(Q34770),P282,c(Q9779)|c(Q8192))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?d ) WHERE { { ?m rdf:type ontology:Q34770 . ?g rdf:type ontology:Q9779 . ?m property:P282 ?g } UNION { ?m property:P282 ?g . ?m rdf:type ontology:Q34770 . ?g rdf:type ontology:Q8192 } } GROUP BY ?m } } . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?o ) WHERE { { ?e rdf:type ontology:Q34770 . ?j rdf:type ontology:Q8192 . ?e property:P282 ?j } UNION { ?e property:P282 ?j . ?e rdf:type ontology:Q34770 . ?j rdf:type ontology:Q9779 } } GROUP BY ?e } . FILTER ( ?o = ?w ) }
action argmax
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?d ) WHERE { { ?m rdf:type ontology:language . ?g rdf:type ontology:alphabet . ?m property:writing_system ?g } UNION { ?m property:writing_system ?g . ?m rdf:type ontology:language . ?g rdf:type ontology:writing_system } } GROUP BY ?m } } . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?o ) WHERE { { ?e rdf:type ontology:language . ?j rdf:type ontology:writing_system . ?e property:writing_system ?j } UNION { ?e property:writing_system ?j . ?e rdf:type ontology:language . ?j rdf:type ontology:alphabet } } GROUP BY ?e } . FILTER ( ?o = ?w ) }
[]
alphabet writing system language
Q182695
SYSTEM
Late Old Japanese
Q182695
(c(Q34770),P282,c(Q9779)|c(Q8192))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
[ANSWER] adopt max number of alphabets and writing systems as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?d ) WHERE { { ?m rdf:type ontology:Q34770 . ?g rdf:type ontology:Q9779 . ?m property:P282 ?g } UNION { ?m property:P282 ?g . ?m rdf:type ontology:Q34770 . ?g rdf:type ontology:Q8192 } } GROUP BY ?m } } . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?o ) WHERE { { ?e rdf:type ontology:Q34770 . ?j rdf:type ontology:Q8192 . ?e property:P282 ?j } UNION { ?e property:P282 ?j . ?e rdf:type ontology:Q34770 . ?j rdf:type ontology:Q9779 } } GROUP BY ?e } . FILTER ( ?o = ?w ) }
Late Old Japanese
Late Old Japanese adopt max number of alphabets and writing systems as the writing system
Late Old Japanese
action argmax
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?d ) WHERE { { ?m rdf:type ontology:language . ?g rdf:type ontology:alphabet . ?m property:writing_system ?g } UNION { ?m property:writing_system ?g . ?m rdf:type ontology:language . ?g rdf:type ontology:writing_system } } GROUP BY ?m } } . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?o ) WHERE { { ?e rdf:type ontology:language . ?j rdf:type ontology:writing_system . ?e property:writing_system ?j } UNION { ?e property:writing_system ?j . ?e rdf:type ontology:language . ?j rdf:type ontology:alphabet } } GROUP BY ?e } . FILTER ( ?o = ?w ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q182695 Q34174
P1412
Q502895
USER
How many people talks in Late Old Japanese or Riffian ?
(c(Q502895),P1412,Q182695) (c(Q502895),P1412,Q34174)
action count
action union
action filter_type
action find_reverse
entity Q182695
relation P1412
type Q502895
action filter_type
action find_reverse
entity Q34174
relation P1412
type Q502895
[{'concept': 'Q502895'}, 'P1412', 'Q182695'] [{'concept': 'Q502895'}, 'P1412', 'Q34174']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?p ) { ( resource:Q182695 ) ( resource:Q34174 ) } . ?a property:P1412 ?p }
Late Old Japanese Riffian
action count
action union
action filter_type
action find_reverse
entity Late Old Japanese
relation languages spoken, written or signed
type common name
action filter_type
action find_reverse
entity Riffian
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Late Old Japanese'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Riffian']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?p ) { ( resource:Late_Old_Japanese ) ( resource:Riffian ) } . ?a property:languages_spoken,_written_or_signed ?p }
[]
common name
SYSTEM
2
Q451991 Q202650
(c(Q502895),P1412,Q182695) (c(Q502895),P1412,Q34174)
action count
action union
action filter_type
action find_reverse
entity Q182695
relation P1412
type Q502895
action filter_type
action find_reverse
entity Q34174
relation P1412
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1412', 'Q182695'] [{'concept': 'Q502895'}, 'P1412', 'Q34174']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?p ) { ( resource:Q182695 ) ( resource:Q34174 ) } . ?a property:P1412 ?p }
Ariwara no Narihira Abd el-Krim
2
action count
action union
action filter_type
action find_reverse
entity Late Old Japanese
relation languages spoken, written or signed
type common name
action filter_type
action find_reverse
entity Riffian
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Late Old Japanese'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Riffian']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?p ) { ( resource:Late_Old_Japanese ) ( resource:Riffian ) } . ?a property:languages_spoken,_written_or_signed ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q182695
P1412
Q502895
USER
How many people speaks Late Old Japanese ?
(c(Q502895),P1412,Q182695)
action count
action filter_type
action find_reverse
entity Q182695
relation P1412
type Q502895
[{'concept': 'Q502895'}, 'P1412', 'Q182695']
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h rdf:type ontology:Q502895 . ?h property:P1412 resource:Q182695 }
Late Old Japanese
action count
action filter_type
action find_reverse
entity Late Old Japanese
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Late Old Japanese']
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h rdf:type ontology:common_name . ?h property:languages_spoken,_written_or_signed resource:Late_Old_Japanese }
[]
common name
SYSTEM
1
Q451991
(c(Q502895),P1412,Q182695)
action count
action filter_type
action find_reverse
entity Q182695
relation P1412
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1412', 'Q182695']
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h rdf:type ontology:Q502895 . ?h property:P1412 resource:Q182695 }
Ariwara no Narihira
1
action count
action filter_type
action find_reverse
entity Late Old Japanese
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Late Old Japanese']
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h rdf:type ontology:common_name . ?h property:languages_spoken,_written_or_signed resource:Late_Old_Japanese }
[]