Simple Question (Direct)
Simple Question
Q25513773
P21
Q290
USER
Which sex does Brett Roberts have ?
(Q25513773,P21,c(Q290))
action filter_type
action find
entity Q25513773
relation P21
type Q290
['Q25513773', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q25513773 property:P21 ?z . ?z rdf:type ontology:Q290 }
Brett Roberts
action filter_type
action find
entity Brett Roberts
relation gender
type sex
['Brett Roberts', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Brett_Roberts property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q25513773,P21,c(Q290))
action filter_type
action find
entity Q25513773
relation P21
type Q290
Brett Roberts has a [ANSWER]
['Q25513773', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q25513773 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Brett Roberts has a male
male
action filter_type
action find
entity Brett Roberts
relation gender
type sex
['Brett Roberts', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Brett_Roberts property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q25513773
P1412
Q34770
USER
Which language can that person read ?
(Q6581097,P1412,c(Q34770))
action filter_type
action find
entity Q25513773
relation P1412
type Q34770
['Q6581097', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q25513773 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
Brett Roberts
action filter_type
action find
entity Brett Roberts
relation languages spoken, written or signed
type language
['male', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Brett_Roberts property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6581097,P1412,c(Q34770))
action filter_type
action find
entity Q25513773
relation P1412
type Q34770
That person can read the [ANSWER]
['Q6581097', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q25513773 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
English
That person can read the English
English
action filter_type
action find
entity Brett Roberts
relation languages spoken, written or signed
type language
['male', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Brett_Roberts property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q25513773
P39
Q12737077
USER
What was the position for which Brett Roberts was appointed ?
(Q25513773,P39,c(Q12737077))
action filter_type
action find
entity Q25513773
relation P39
type Q12737077
['Q25513773', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q25513773 property:P39 ?h }
Brett Roberts
action filter_type
action find
entity Brett Roberts
relation position held
type occupation
['Brett Roberts', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Brett_Roberts property:position_held ?h }
[]
occupation
Q18654736
SYSTEM
member of the Michigan House of Representatives
Q18654736
(Q25513773,P39,c(Q12737077))
action filter_type
action find
entity Q25513773
relation P39
type Q12737077
The [ANSWER]
['Q25513773', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q25513773 property:P39 ?h }
member of the Michigan House of Representatives
The member of the Michigan House of Representatives
member of the Michigan House of Representatives
action filter_type
action find
entity Brett Roberts
relation position held
type occupation
['Brett Roberts', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Brett_Roberts property:position_held ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3420272
Q12737077
USER
And also tell me about Ravennius?
(Q3420272,P39,c(Q12737077))
action filter_type
action find
entity Q3420272
relation P39
type Q12737077
['Q3420272', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q3420272 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Ravennius
action filter_type
action find
entity Ravennius
relation position held
type occupation
['Ravennius', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ravennius property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q49476
SYSTEM
archbishop
Q49476
(Q3420272,P39,c(Q12737077))
action filter_type
action find
entity Q3420272
relation P39
type Q12737077
[ANSWER]
['Q3420272', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q3420272 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
archbishop
archbishop
action filter_type
action find
entity Ravennius
relation position held
type occupation
['Ravennius', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ravennius property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?x ) { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P417 ?r . ?r rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 } GROUP BY ?r } } . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:P417 ?k . ?k rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?k } . FILTER ( ?z = ?x ) }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?x ) { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:patron_saint ?r . ?r rdf:type ontology:common_name . ?d rdf:type ontology:occupation } GROUP BY ?r } } . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:patron_saint ?k . ?k rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?k } . FILTER ( ?z = ?x ) }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the patron saints of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?x ) { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P417 ?r . ?r rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 } GROUP BY ?r } } . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:P417 ?k . ?k rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?k } . FILTER ( ?z = ?x ) }
Catherine of Alexandria
Catherine of Alexandria is the patron saints of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?x ) { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:patron_saint ?r . ?r rdf:type ontology:common_name . ?d rdf:type ontology:occupation } GROUP BY ?r } } . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:patron_saint ?k . ?k rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?k } . FILTER ( ?z = ?x ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1860
P361
Q5962346
USER
How many classification schemes are English a portion of ?
(Q1860,P361,c(Q5962346))
action count
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { resource:Q1860 property:P361 ?v . ?v rdf:type ontology:Q5962346 }
English
action count
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { resource:English property:part_of ?v . ?v rdf:type ontology:classification_scheme }
[]
classification scheme
SYSTEM
2
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action count
action filter_type
action find
entity Q1860
relation P361
type Q5962346
[ANSWER]
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { resource:Q1860 property:P361 ?v . ?v rdf:type ontology:Q5962346 }
Anglic languages Anglo-Frisian languages
2
action count
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { resource:English property:part_of ?v . ?v rdf:type ontology:classification_scheme }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q11732485
Q5962346
USER
And how about Mungkip language?
(Q11732485,P361,c(Q5962346))
action count
action filter_type
action find
entity Q11732485
relation P361
type Q5962346
['Q11732485', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { resource:Q11732485 property:P361 ?g . ?g rdf:type ontology:Q5962346 }
Mungkip language
action count
action filter_type
action find
entity Mungkip language
relation part of
type classification scheme
['Mungkip language', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { resource:Mungkip_language property:part_of ?g . ?g rdf:type ontology:classification_scheme }
[]
classification scheme
SYSTEM
1
(Q11732485,P361,c(Q5962346))
action count
action filter_type
action find
entity Q11732485
relation P361
type Q5962346
[ANSWER]
['Q11732485', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { resource:Q11732485 property:P361 ?g . ?g rdf:type ontology:Q5962346 }
1
action count
action filter_type
action find
entity Mungkip language
relation part of
type classification scheme
['Mungkip language', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { resource:Mungkip_language property:part_of ?g . ?g rdf:type ontology:classification_scheme }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q36206
P37
Q34770 Q1048835 Q13220204
USER
Which languages are the official languages of greater number of political territories or administrative country subdivisions than Lak ?
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q36206
relation P37
type Q1048835
type Q13220204
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?s ) WHERE { { ?y rdf:type ontology:Q34770 . ?i rdf:type ontology:Q1048835 . ?i property:P37 ?y } UNION { ?i rdf:type ontology:Q13220204 . ?y rdf:type ontology:Q34770 . ?i property:P37 ?y } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { ?v rdf:type ?l . VALUES ( ?l ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } } . ?v property:P37 resource:Q36206 } } . FILTER ( ?s > ?f ) }
Lak
action greater
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 second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Lak
relation official language
type political territorial entity
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?s ) WHERE { { ?y rdf:type ontology:language . ?i rdf:type ontology:political_territorial_entity . ?i property:official_language ?y } UNION { ?i rdf:type ontology:second-level_administrative_country_subdivision . ?y rdf:type ontology:language . ?i property:official_language ?y } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { ?v rdf:type ?l . VALUES ( ?l ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } } . ?v property:official_language resource:Lak } } . FILTER ( ?s > ?f ) }
[]
language political territorial entity second-level administrative country subdivision
Q1860 Q652 Q1321
SYSTEM
English, Italian, Spanish
Q1860 Q652 Q1321 Q8785 Q25164
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q36206
relation P37
type Q1048835
type Q13220204
[ANSWERS] are the official languages of greater number of political territories or administrative country subdivisions than Lak
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?s ) WHERE { { ?y rdf:type ontology:Q34770 . ?i rdf:type ontology:Q1048835 . ?i property:P37 ?y } UNION { ?i rdf:type ontology:Q13220204 . ?y rdf:type ontology:Q34770 . ?i property:P37 ?y } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { ?v rdf:type ?l . VALUES ( ?l ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } } . ?v property:P37 resource:Q36206 } } . FILTER ( ?s > ?f ) }
English Italian Spanish Armenian Nynorsk
English, Italian and Spanish are the official languages of greater number of political territories or administrative country subdivisions than Lak
English Italian Spanish
action greater
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 second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Lak
relation official language
type political territorial entity
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?s ) WHERE { { ?y rdf:type ontology:language . ?i rdf:type ontology:political_territorial_entity . ?i property:official_language ?y } UNION { ?i rdf:type ontology:second-level_administrative_country_subdivision . ?y rdf:type ontology:language . ?i property:official_language ?y } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { ?v rdf:type ?l . VALUES ( ?l ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } } . ?v property:official_language resource:Lak } } . FILTER ( ?s > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1321
P37
Q34770 Q1048835 Q13220204
USER
And what about Spanish?
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q1321
relation P37
type Q1048835
type Q13220204
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?z } . FILTER ( ?v > ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { ?g rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } . ?g property:P37 resource:Q1321 } } }
Spanish
action greater
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 second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Spanish
relation official language
type political territorial entity
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?z } . FILTER ( ?v > ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { ?g rdf:type ?x . VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } . ?g property:official_language resource:Spanish } } }
[]
language political territorial entity second-level administrative country subdivision
Q1860 Q652
SYSTEM
English, Italian
Q1860 Q652
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q1321
relation P37
type Q1048835
type Q13220204
[ANSWERS]
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?z } . FILTER ( ?v > ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { ?g rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } . ?g property:P37 resource:Q1321 } } }
English Italian
English Italian
action greater
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 second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Spanish
relation official language
type political territorial entity
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?z } . FILTER ( ?v > ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { ?g rdf:type ?x . VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } . ?g property:official_language resource:Spanish } } }
[]