Simple Question (Direct)
Simple Question
Q5084601
P734
Q82799
USER
Who has the surname Charlie Brown ?
(Q5084601,P734,c(Q82799))
action filter_type
action find
entity Q5084601
relation P734
type Q82799
['Q5084601', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q82799 . resource:Q5084601 property:P734 ?i }
Charlie Brown
action filter_type
action find
entity Charlie Brown
relation family name
type name
['Charlie Brown', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:name . resource:Charlie_Brown property:family_name ?i }
[]
name
Q13421990
SYSTEM
Brown
Q13421990
(Q5084601,P734,c(Q82799))
action filter_type
action find
entity Q5084601
relation P734
type Q82799
As [ANSWER] has the surname Charlie [ANSWER]
['Q5084601', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q82799 . resource:Q5084601 property:P734 ?i }
Brown
As Brown has the surname Charlie Brown
Brown
action filter_type
action find
entity Charlie Brown
relation family name
type name
['Charlie Brown', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:name . resource:Charlie_Brown property:family_name ?i }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P407
Q34770
USER
How many languages are the languages of work for that name ?
(Q13421990,P407,c(Q34770))
action count
action filter_type
action find
entity Q13421990
relation P407
type Q34770
['Q13421990', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Q13421990 property:P407 ?z . ?z rdf:type ontology:Q34770 }
action count
action filter_type
action find
entity Brown
relation language of work or name
type language
['Brown', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Brown property:language_of_work_or_name ?z . ?z rdf:type ontology:language }
[]
language
SYSTEM
1
Q1860
(Q13421990,P407,c(Q34770))
action count
action filter_type
action find
entity Q13421990
relation P407
type Q34770
[ANSWER]
['Q13421990', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Q13421990 property:P407 ?z . ?z rdf:type ontology:Q34770 }
English
1
action count
action filter_type
action find
entity Brown
relation language of work or name
type language
['Brown', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Brown property:language_of_work_or_name ?z . ?z rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q35308
P407
Q34770 Q82799
USER
How many languages are the languages of work for greater number of names than Old Irish ?
(c(Q82799),P407,c(Q34770))
action count
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q35308
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ontology:Q34770 . resource:Q35308 property:P407 ?t } } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?e ) WHERE { ?q property:P407 ?u . ?u rdf:type ontology:Q34770 . ?q rdf:type ontology:Q82799 } GROUP BY ?u } }
Old Irish
action count
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Old Irish
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ontology:language . resource:Old_Irish property:language_of_work_or_name ?t } } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?e ) WHERE { ?q property:language_of_work_or_name ?u . ?u rdf:type ontology:language . ?q rdf:type ontology:name } GROUP BY ?u } }
[]
language name
SYSTEM
8
Q1860 Q8785 Q1321 Q397 Q9056 Q8752 Q652 Q35505
(c(Q82799),P407,c(Q34770))
action count
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q35308
relation P407
type Q34770
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ontology:Q34770 . resource:Q35308 property:P407 ?t } } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?e ) WHERE { ?q property:P407 ?u . ?u rdf:type ontology:Q34770 . ?q rdf:type ontology:Q82799 } GROUP BY ?u } }
English Armenian Spanish Latin Czech Basque Italian Old Norse language
8
action count
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Old Irish
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ontology:language . resource:Old_Irish property:language_of_work_or_name ?t } } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?e ) WHERE { ?q property:language_of_work_or_name ?u . ?u rdf:type ontology:language . ?q rdf:type ontology:name } GROUP BY ?u } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P407
Q34770 Q82799
USER
Which languages are max number of names in ?
(c(Q82799),P407,Q447117)
action argmax
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
[{'concept': 'Q82799'}, 'P407', 'Q447117']
SELECT DISTINCT ?f WHERE { FILTER ( ?q = ?a ) . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P407 ?f . ?f rdf:type ontology:Q34770 . ?u rdf:type ontology:Q82799 } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?p ) AS ?a ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P407 ?n . ?n rdf:type ontology:Q34770 . ?z rdf:type ontology:Q82799 } GROUP BY ?n } } }
action argmax
action find_reverse_tuple_counts
relation language of work or name
type language
type name
[{'concept': 'name'}, 'language of work or name', 'Old Egyptian']
SELECT DISTINCT ?f WHERE { FILTER ( ?q = ?a ) . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:language_of_work_or_name ?f . ?f rdf:type ontology:language . ?u rdf:type ontology:name } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?p ) AS ?a ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:language_of_work_or_name ?n . ?n rdf:type ontology:language . ?z rdf:type ontology:name } GROUP BY ?n } } }
[]
language name
Q1860
SYSTEM
English
Q1860
(c(Q82799),P407,Q447117)
action argmax
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
Which languages is max number of names in
[{'concept': 'Q82799'}, 'P407', 'Q447117']
SELECT DISTINCT ?f WHERE { FILTER ( ?q = ?a ) . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P407 ?f . ?f rdf:type ontology:Q34770 . ?u rdf:type ontology:Q82799 } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?p ) AS ?a ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P407 ?n . ?n rdf:type ontology:Q34770 . ?z rdf:type ontology:Q82799 } GROUP BY ?n } } }
English
Which languages is max number of names in
English
action argmax
action find_reverse_tuple_counts
relation language of work or name
type language
type name
[{'concept': 'name'}, 'language of work or name', 'Old Egyptian']
SELECT DISTINCT ?f WHERE { FILTER ( ?q = ?a ) . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:language_of_work_or_name ?f . ?f rdf:type ontology:language . ?u rdf:type ontology:name } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?p ) AS ?a ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:language_of_work_or_name ?n . ?n rdf:type ontology:language . ?z rdf:type ontology:name } GROUP BY ?n } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P282
Q2001982 Q8192 Q34770
USER
How many languages adopt lesser number of notations and writing systems as the writing system than that language ?
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action count
action less
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q1860
relation P282
type Q2001982
type Q8192
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?r ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } . resource:Q1860 property:P282 ?e } } . FILTER ( ?r < ?z ) }
action count
action less
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
action count
action filter_multi_types
action find
entity English
relation writing system
type notation
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?r ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:notation ) ( ontology:writing_system ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e rdf:type ?k . VALUES ( ?k ) { ( ontology:notation ) ( ontology:writing_system ) } } . resource:English property:writing_system ?e } } . FILTER ( ?r < ?z ) }
[]
notation writing system language
SYSTEM
0
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action count
action less
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q1860
relation P282
type Q2001982
type Q8192
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?r ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } . resource:Q1860 property:P282 ?e } } . FILTER ( ?r < ?z ) }
0
action count
action less
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
action count
action filter_multi_types
action find
entity English
relation writing system
type notation
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?r ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:notation ) ( ontology:writing_system ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e rdf:type ?k . VALUES ( ?k ) { ( ontology:notation ) ( ontology:writing_system ) } } . resource:English property:writing_system ?e } } . FILTER ( ?r < ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1860
P2439
Q502895 Q1969448
USER
How many people and terms have a connection with the language English ?
(c(Q502895),P2439,Q1860) (c(Q1969448),P2439,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q502895
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q1969448
[{'concept': 'Q502895'}, 'P2439', 'Q1860'] [{'concept': 'Q1969448'}, 'P2439', 'Q1860']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:Q502895 ) ( ontology:Q1969448 ) } }
English
action count
action union
action filter_type
action find_reverse
entity English
relation language
type common name
action filter_type
action find_reverse
entity English
relation language
type term
[{'concept': 'common name'}, 'language', 'English'] [{'concept': 'term'}, 'language', 'English']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:common_name ) ( ontology:term ) } }
[]
common name term
SYSTEM
4 people and 15 terms
Q5324750 Q6720315 Q5360729 Q5975490 Q6107784 Q5324036 Q4651853 Q21104226 Q4654708 Q4836877 Q4668674 Q24045999 Q5635995 Q5315751 Q5971975 Q1778314 Q5204677 Q27048749 Q5204450
(c(Q502895),P2439,Q1860) (c(Q1969448),P2439,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q502895
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q1969448
[ANSWER]
[{'concept': 'Q502895'}, 'P2439', 'Q1860'] [{'concept': 'Q1969448'}, 'P2439', 'Q1860']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:Q502895 ) ( ontology:Q1969448 ) } }
EZFW MXlo Elie Tahari IVOD JBOB ERFx AIDR Michael Laucke ATLO BYOA Abox María Dolores Bargues Castelló HSPF Dunt IMD3 PSAM DDLC Davide Anselmi DBrn
4 people and 15 terms
action count
action union
action filter_type
action find_reverse
entity English
relation language
type common name
action filter_type
action find_reverse
entity English
relation language
type term
[{'concept': 'common name'}, 'language', 'English'] [{'concept': 'term'}, 'language', 'English']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:common_name ) ( ontology:term ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P37
Q34770 Q7275
USER
Which states designates max number of languages as their official language ?
(c(Q7275),P37,c(Q34770))
action argmax
action find_tuple_counts
relation P37
type Q7275
type Q34770
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?y ) { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?j ) WHERE { ?s rdf:type ontology:Q7275 . ?p rdf:type ontology:Q34770 . ?s property:P37 ?p } GROUP BY ?s } } . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?i ) WHERE { ?w property:P37 ?u . ?w rdf:type ontology:Q7275 . ?u rdf:type ontology:Q34770 } GROUP BY ?w } . FILTER ( ?i = ?y ) }
action argmax
action find_tuple_counts
relation official language
type state
type language
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?y ) { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?j ) WHERE { ?s rdf:type ontology:state . ?p rdf:type ontology:language . ?s property:official_language ?p } GROUP BY ?s } } . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?i ) WHERE { ?w property:official_language ?u . ?w rdf:type ontology:state . ?u rdf:type ontology:language } GROUP BY ?w } . FILTER ( ?i = ?y ) }
[]
language state
Q49683 Q947153 Q172107
SYSTEM
Grand Duchy of Lithuania, Kingdom of Tavolara, Polish–Lithuanian Commonwealth
Q1194329 Q947153 Q172107 Q4948 Q19801186 Q49683
(c(Q7275),P37,c(Q34770))
action argmax
action find_tuple_counts
relation P37
type Q7275
type Q34770
[ANSWERS] designate max number of languages as their official language
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?y ) { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?j ) WHERE { ?s rdf:type ontology:Q7275 . ?p rdf:type ontology:Q34770 . ?s property:P37 ?p } GROUP BY ?s } } . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?i ) WHERE { ?w property:P37 ?u . ?w rdf:type ontology:Q7275 . ?u rdf:type ontology:Q34770 } GROUP BY ?w } . FILTER ( ?i = ?y ) }
Nova Roma Kingdom of Tavolara Polish–Lithuanian Commonwealth Republic of Venice Liberland Grand Duchy of Lithuania
Grand Duchy of Lithuania, Kingdom of Tavolara and Polish–Lithuanian Commonwealth designate max number of languages as their official language
Grand Duchy of Lithuania Kingdom of Tavolara Polish–Lithuanian Commonwealth
action argmax
action find_tuple_counts
relation official language
type state
type language
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?y ) { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?j ) WHERE { ?s rdf:type ontology:state . ?p rdf:type ontology:language . ?s property:official_language ?p } GROUP BY ?s } } . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?i ) WHERE { ?w property:official_language ?u . ?w rdf:type ontology:state . ?u rdf:type ontology:language } GROUP BY ?w } . FILTER ( ?i = ?y ) }
[]