Simple Question (Direct)
Simple Question
Q3262668
P27
Q15617994
USER
Which administrative territories do Ludwik Mateusz Dembowski belong to ?
(Q3262668,P27,c(Q15617994))
action filter_type
action find
entity Q3262668
relation P27
type Q15617994
['Q3262668', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3262668 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Ludwik Mateusz Dembowski
action filter_type
action find
entity Ludwik Mateusz Dembowski
relation country of citizenship
type designation for an administrative territorial entity
['Ludwik Mateusz Dembowski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Ludwik_Mateusz_Dembowski property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q36
SYSTEM
France, Poland
Q142 Q36
(Q3262668,P27,c(Q15617994))
action filter_type
action find
entity Q3262668
relation P27
type Q15617994
Ludwik Mateusz Dembowski belong to the [ANSWERS]
['Q3262668', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3262668 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
France Poland
Ludwik Mateusz Dembowski belong to the France and Poland
France Poland
action filter_type
action find
entity Ludwik Mateusz Dembowski
relation country of citizenship
type designation for an administrative territorial entity
['Ludwik Mateusz Dembowski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Ludwik_Mateusz_Dembowski property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q142 Q36
P172
Q502895
USER
Which people have those administrative territories as his/her race ?
(c(Q502895),P172,Q142) (c(Q502895),P172,Q36)
action filter_type
action find_reverse
entity prev_answer
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q142'] [{'concept': 'Q502895'}, 'P172', 'Q36']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P172 ?x . VALUES ( ?x ) { ( resource:Q142 ) ( resource:Q36 ) } }
France Poland
action filter_type
action find_reverse
entity prev_answer
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'France'] [{'concept': 'common name'}, 'ethnic group', 'Poland']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:ethnic_group ?x . VALUES ( ?x ) { ( resource:France ) ( resource:Poland ) } }
[]
common name
Q1379099 Q561686 Q7802841
SYSTEM
Pierre François Xavier de Charlevoix, François Sagat, Tillie Klimek
Q3153987 Q26132975 Q561686 Q2750183 Q1379099 Q7802841 Q1977043
(c(Q502895),P172,Q142) (c(Q502895),P172,Q36)
action filter_type
action find_reverse
entity prev_answer
relation P172
type Q502895
[ANSWERS] have those administrative territories as his/her race
[{'concept': 'Q502895'}, 'P172', 'Q142'] [{'concept': 'Q502895'}, 'P172', 'Q36']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P172 ?x . VALUES ( ?x ) { ( resource:Q142 ) ( resource:Q36 ) } }
Ines Ligron Jean Butteau François Sagat Louis-Armand de Lom d'Arce de Lahontan, Baron de Lahontan Pierre François Xavier de Charlevoix Tillie Klimek Bronislav Grombchevsky
Pierre François Xavier de Charlevoix, François Sagat and Tillie Klimek have those administrative territories as his/her race
Pierre François Xavier de Charlevoix François Sagat Tillie Klimek
action filter_type
action find_reverse
entity prev_answer
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'France'] [{'concept': 'common name'}, 'ethnic group', 'Poland']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:ethnic_group ?x . VALUES ( ?x ) { ( resource:France ) ( resource:Poland ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1379099
P140
Q874405
USER
Which social group does Pierre François Xavier de Charlevoix correspond to ?
(Q1379099,P140,c(Q874405))
action filter_type
action find
entity Q1379099
relation P140
type Q874405
['Q1379099', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?g WHERE { resource:Q1379099 property:P140 ?g . ?g rdf:type ontology:Q874405 }
Pierre François Xavier de Charlevoix
action filter_type
action find
entity Pierre François Xavier de Charlevoix
relation religion
type social group
['Pierre François Xavier de Charlevoix', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?g WHERE { resource:Pierre_François_Xavier_de_Charlevoix property:religion ?g . ?g rdf:type ontology:social_group }
[]
social group
Q1841
SYSTEM
Catholicism
Q1841
(Q1379099,P140,c(Q874405))
action filter_type
action find
entity Q1379099
relation P140
type Q874405
Pierre François Xavier de Charlevoix corresponds to [ANSWER]
['Q1379099', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?g WHERE { resource:Q1379099 property:P140 ?g . ?g rdf:type ontology:Q874405 }
Catholicism
Pierre François Xavier de Charlevoix corresponds to Catholicism
Catholicism
action filter_type
action find
entity Pierre François Xavier de Charlevoix
relation religion
type social group
['Pierre François Xavier de Charlevoix', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?g WHERE { resource:Pierre_François_Xavier_de_Charlevoix property:religion ?g . ?g rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1379099
P611
Q1530022
USER
What religion is Pierre François Xavier de Charlevoix affiliated to ?
(Q1379099,P611,c(Q1530022))
action filter_type
action find
entity Q1379099
relation P611
type Q1530022
['Q1379099', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?a WHERE { resource:Q1379099 property:P611 ?a . ?a rdf:type ontology:Q1530022 }
Pierre François Xavier de Charlevoix
action filter_type
action find
entity Pierre François Xavier de Charlevoix
relation religious order
type religious organization
['Pierre François Xavier de Charlevoix', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?a WHERE { resource:Pierre_François_Xavier_de_Charlevoix property:religious_order ?a . ?a rdf:type ontology:religious_organization }
[]
religious organization
Q36380
SYSTEM
Society of Jesus
Q36380
(Q1379099,P611,c(Q1530022))
action filter_type
action find
entity Q1379099
relation P611
type Q1530022
Pierre François Xavier de Charlevoix is affiliated with [ANSWER]
['Q1379099', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?a WHERE { resource:Q1379099 property:P611 ?a . ?a rdf:type ontology:Q1530022 }
Society of Jesus
Pierre François Xavier de Charlevoix is affiliated with Society of Jesus
Society of Jesus
action filter_type
action find
entity Pierre François Xavier de Charlevoix
relation religious order
type religious organization
['Pierre François Xavier de Charlevoix', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?a WHERE { resource:Pierre_François_Xavier_de_Charlevoix property:religious_order ?a . ?a rdf:type ontology:religious_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P137
Q811979
USER
Which architectural structure is the administrator of Poland ?
(c(Q811979),P137,Q36)
action filter_type
action find_reverse
entity Q36
relation P137
type Q811979
[{'concept': 'Q811979'}, 'P137', 'Q36']
SELECT DISTINCT ?c WHERE { ?c property:P137 resource:Q36 . ?c rdf:type ontology:Q811979 }
Poland
action filter_type
action find_reverse
entity Poland
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'Poland']
SELECT DISTINCT ?c WHERE { ?c property:operator resource:Poland . ?c rdf:type ontology:architectural_structure }
[]
architectural structure
Q5369828
SYSTEM
Embassy of Poland, Stockholm
Q5369828
(c(Q811979),P137,Q36)
action filter_type
action find_reverse
entity Q36
relation P137
type Q811979
[ANSWER] is the administrator of Poland
[{'concept': 'Q811979'}, 'P137', 'Q36']
SELECT DISTINCT ?c WHERE { ?c property:P137 resource:Q36 . ?c rdf:type ontology:Q811979 }
Embassy of Poland, Stockholm
Embassy of Poland, Stockholm is the administrator of Poland
Embassy of Poland, Stockholm
action filter_type
action find_reverse
entity Poland
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'Poland']
SELECT DISTINCT ?c WHERE { ?c property:operator resource:Poland . ?c rdf:type ontology:architectural_structure }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P36
Q56061
USER
Which administrative territory is called the capital of Poland ?
(Q36,P36,c(Q56061))
action filter_type
action find
entity Q36
relation P36
type Q56061
['Q36', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q36 property:P36 ?d . ?d rdf:type ontology:Q56061 }
Poland
action filter_type
action find
entity Poland
relation capital
type administrative territorial entity
['Poland', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Poland property:capital ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270
SYSTEM
Warsaw
Q270
(Q36,P36,c(Q56061))
action filter_type
action find
entity Q36
relation P36
type Q56061
Poland [ANSWER] is called the capital of Poland
['Q36', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q36 property:P36 ?d . ?d rdf:type ontology:Q56061 }
Warsaw
Poland Warsaw is called the capital of Poland
Warsaw
action filter_type
action find
entity Poland
relation capital
type administrative territorial entity
['Poland', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Poland property:capital ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q270
P551
Q502895
USER
Which people live in that administrative territory ?
(c(Q502895),P551,Q270)
action filter_type
action find_reverse
entity Q270
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q270']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?q property:P551 resource:Q270 }
Warsaw
action filter_type
action find_reverse
entity Warsaw
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Warsaw']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?q property:residence resource:Warsaw }
[]
common name
Q161363 Q1349910 Q9343096
SYSTEM
Zbigniew Herbert, Samuel Linde, Stanisław Srokowski
Q12115606 Q16830191 Q16292954 Q9343096 Q27050059 Q232823 Q1235246 Q254232 Q17600497 Q11717161 Q11749350 Q161363 Q15731668 Q6381216 Q22813583 Q3848196 Q27126747 Q242999 Q11713786 Q16620409 Q17254565 Q1982663 Q21974515 Q27050592 Q21095548 Q1349910 Q369236
(c(Q502895),P551,Q270)
action filter_type
action find_reverse
entity Q270
relation P551
type Q502895
[ANSWERS] live in that administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q270']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?q property:P551 resource:Q270 }
Pavló Kukurúza Natalia Wróblewska Jan Krauze Stanisław Srokowski Iwo Klimek Marta Domachowska Paweł Nastula Alicja Rosolska Mateusz Żuławski Jan Błachowicz Krzysztof Klimek Zbigniew Herbert Zuzanna Maciejewska Kazimierz Mijal Mariusz Wróblewski Grzegorz Przemyk Franciszek Wróblewski Klaudia Jans-Ignacik Irena Kuran-Bogucka Zofia Marchlewska Kamil Barbarski Magdalena Grzybowska Dariusz Tosik Iwona Szałwińska-Klimek Kate Macintosh Samuel Linde Mariusz Fyrstenberg
Zbigniew Herbert, Samuel Linde and Stanisław Srokowski live in that administrative territory
Zbigniew Herbert Samuel Linde Stanisław Srokowski
action filter_type
action find_reverse
entity Warsaw
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Warsaw']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?q property:residence resource:Warsaw }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q151885 Q12737077
USER
How many concepts or occupations are the job of that person ?
(Q9343096,P106,c(Q151885)) (Q9343096,P106,c(Q12737077)) (Q161363,P106,c(Q151885)) (Q161363,P106,c(Q12737077)) (Q1349910,P106,c(Q151885)) (Q1349910,P106,c(Q12737077)) (Q9343096,P106,c(Q151885)) (Q9343096,P106,c(Q12737077))
['Q9343096', 'P106', {'concept': 'Q151885'}] ['Q9343096', 'P106', {'concept': 'Q12737077'}] ['Q161363', 'P106', {'concept': 'Q151885'}] ['Q161363', 'P106', {'concept': 'Q12737077'}] ['Q1349910', 'P106', {'concept': 'Q151885'}] ['Q1349910', 'P106', {'concept': 'Q12737077'}] ['Q9343096', 'P106', {'concept': 'Q151885'}] ['Q9343096', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q9343096 property:Q528892 ?z } UNION { resource:Q9343096 property:Q528892 ?y } UNION { resource:Q161363 property:Q528892 ?z } UNION { resource:Q161363 property:Q528892 ?y } UNION { resource:Q1349910 property:Q528892 ?z } UNION { resource:Q1349910 property:Q528892 ?y } UNION { resource:Q9343096 property:Q528892 ?z } UNION { resource:Q9343096 property:Q528892 ?y } } . ?z rdf:type ontology:Q151885 . ?y rdf:type ontology:Q528892 }
['Stanisław Srokowski', 'occupation', {'concept': 'concept'}] ['Stanisław Srokowski', 'occupation', {'concept': 'occupation'}] ['Zbigniew Herbert', 'occupation', {'concept': 'concept'}] ['Zbigniew Herbert', 'occupation', {'concept': 'occupation'}] ['Samuel Linde', 'occupation', {'concept': 'concept'}] ['Samuel Linde', 'occupation', {'concept': 'occupation'}] ['Stanisław Srokowski', 'occupation', {'concept': 'concept'}] ['Stanisław Srokowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Stanisław_Srokowski property:occupation ?z } UNION { resource:Stanisław_Srokowski property:occupation ?y } UNION { resource:Zbigniew_Herbert property:occupation ?z } UNION { resource:Zbigniew_Herbert property:occupation ?y } UNION { resource:Samuel_Linde property:occupation ?z } UNION { resource:Samuel_Linde property:occupation ?y } UNION { resource:Stanisław_Srokowski property:occupation ?z } UNION { resource:Stanisław_Srokowski property:occupation ?y } } . ?z rdf:type ontology:concept . ?y rdf:type ontology:occupation }
[]
concept occupation
Quantitative|Count|Mult. entity type|Clarification
Q161363
SYSTEM
Did you mean Zbigniew Herbert ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q9343096 property:Q528892 ?z } UNION { resource:Q9343096 property:Q528892 ?y } UNION { resource:Q161363 property:Q528892 ?z } UNION { resource:Q161363 property:Q528892 ?y } UNION { resource:Q1349910 property:Q528892 ?z } UNION { resource:Q1349910 property:Q528892 ?y } UNION { resource:Q9343096 property:Q528892 ?z } UNION { resource:Q9343096 property:Q528892 ?y } } . ?z rdf:type ontology:Q151885 . ?y rdf:type ontology:Q528892 }
Did you mean Zbigniew Herbert ?
Zbigniew Herbert
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Stanisław_Srokowski property:occupation ?z } UNION { resource:Stanisław_Srokowski property:occupation ?y } UNION { resource:Zbigniew_Herbert property:occupation ?z } UNION { resource:Zbigniew_Herbert property:occupation ?y } UNION { resource:Samuel_Linde property:occupation ?z } UNION { resource:Samuel_Linde property:occupation ?y } UNION { resource:Stanisław_Srokowski property:occupation ?z } UNION { resource:Stanisław_Srokowski property:occupation ?y } } . ?z rdf:type ontology:concept . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Stanisław Srokowski. Could you tell me the answer for that?
(Q9343096,P106,c(Q151885)) (Q9343096,P106,c(Q12737077)) (Q161363,P106,c(Q151885)) (Q161363,P106,c(Q12737077)) (Q1349910,P106,c(Q151885)) (Q1349910,P106,c(Q12737077)) (Q9343096,P106,c(Q151885)) (Q9343096,P106,c(Q12737077))
Q9343096
['Q9343096', 'P106', {'concept': 'Q151885'}] ['Q9343096', 'P106', {'concept': 'Q12737077'}] ['Q161363', 'P106', {'concept': 'Q151885'}] ['Q161363', 'P106', {'concept': 'Q12737077'}] ['Q1349910', 'P106', {'concept': 'Q151885'}] ['Q1349910', 'P106', {'concept': 'Q12737077'}] ['Q9343096', 'P106', {'concept': 'Q151885'}] ['Q9343096', 'P106', {'concept': 'Q12737077'}]
['Stanisław Srokowski', 'occupation', {'concept': 'concept'}] ['Stanisław Srokowski', 'occupation', {'concept': 'occupation'}] ['Zbigniew Herbert', 'occupation', {'concept': 'concept'}] ['Zbigniew Herbert', 'occupation', {'concept': 'occupation'}] ['Samuel Linde', 'occupation', {'concept': 'concept'}] ['Samuel Linde', 'occupation', {'concept': 'occupation'}] ['Stanisław Srokowski', 'occupation', {'concept': 'concept'}] ['Stanisław Srokowski', 'occupation', {'concept': 'occupation'}]
[]
SYSTEM
7
Q1622272 Q1930187 Q333634 Q214917 Q36180 Q4263842 Q49757
(Q9343096,P106,c(Q151885)) (Q9343096,P106,c(Q12737077)) (Q161363,P106,c(Q151885)) (Q161363,P106,c(Q12737077)) (Q1349910,P106,c(Q151885)) (Q1349910,P106,c(Q12737077)) (Q9343096,P106,c(Q151885)) (Q9343096,P106,c(Q12737077))
[ANSWER]
['Q9343096', 'P106', {'concept': 'Q151885'}] ['Q9343096', 'P106', {'concept': 'Q12737077'}] ['Q161363', 'P106', {'concept': 'Q151885'}] ['Q161363', 'P106', {'concept': 'Q12737077'}] ['Q1349910', 'P106', {'concept': 'Q151885'}] ['Q1349910', 'P106', {'concept': 'Q12737077'}] ['Q9343096', 'P106', {'concept': 'Q151885'}] ['Q9343096', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q9343096 property:Q528892 ?z } UNION { resource:Q9343096 property:Q528892 ?y } UNION { resource:Q161363 property:Q528892 ?z } UNION { resource:Q161363 property:Q528892 ?y } UNION { resource:Q1349910 property:Q528892 ?z } UNION { resource:Q1349910 property:Q528892 ?y } UNION { resource:Q9343096 property:Q528892 ?z } UNION { resource:Q9343096 property:Q528892 ?y } } . ?z rdf:type ontology:Q151885 . ?y rdf:type ontology:Q528892 }
university teacher journalist translator playwright writer literary critic poet
7
['Stanisław Srokowski', 'occupation', {'concept': 'concept'}] ['Stanisław Srokowski', 'occupation', {'concept': 'occupation'}] ['Zbigniew Herbert', 'occupation', {'concept': 'concept'}] ['Zbigniew Herbert', 'occupation', {'concept': 'occupation'}] ['Samuel Linde', 'occupation', {'concept': 'concept'}] ['Samuel Linde', 'occupation', {'concept': 'occupation'}] ['Stanisław Srokowski', 'occupation', {'concept': 'concept'}] ['Stanisław Srokowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Stanisław_Srokowski property:occupation ?z } UNION { resource:Stanisław_Srokowski property:occupation ?y } UNION { resource:Zbigniew_Herbert property:occupation ?z } UNION { resource:Zbigniew_Herbert property:occupation ?y } UNION { resource:Samuel_Linde property:occupation ?z } UNION { resource:Samuel_Linde property:occupation ?y } UNION { resource:Stanisław_Srokowski property:occupation ?z } UNION { resource:Stanisław_Srokowski property:occupation ?y } } . ?z rdf:type ontology:concept . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q2342494
USER
How many collectables did around 4 people do the dubbing for ?
(c(Q2342494),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 4
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?v ) WHERE { ?m property:P725 ?k . ?m rdf:type ontology:Q2342494 . ?k rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?v = 4 ) }
action count
action approx
action find_tuple_counts
relation voice actor
type collectable
type common name
value 4
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?v ) WHERE { ?m property:voice_actor ?k . ?m rdf:type ontology:collectable . ?k rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?v = 4 ) }
[]
common name collectable
SYSTEM
3
Q483263 Q53351 Q5647726
(c(Q2342494),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 4
[ANSWER]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?v ) WHERE { ?m property:P725 ?k . ?m rdf:type ontology:Q2342494 . ?k rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?v = 4 ) }
Baka and Test Accel World Handy Manny's Motorcycle Adventure
3
action count
action approx
action find_tuple_counts
relation voice actor
type collectable
type common name
value 4
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?v ) WHERE { ?m property:voice_actor ?k . ?m rdf:type ontology:collectable . ?k rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?v = 4 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 2251 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2251
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?q = 2251 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2251
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?q = 2251 ) }
[]
musical instrument common name
Q46185 Q8338 Q8371
SYSTEM
bass guitar, trumpet, cello
Q46185 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2251
[ANSWERS] are played by approximately 2251 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?q = 2251 ) }
bass guitar trumpet cello organ drum kit
Bass guitar, trumpet and cello are played by approximately 2251 people
bass guitar trumpet cello
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2251
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?q = 2251 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?b = ?p ) . { SELECT DISTINCT ( MIN ( ?o ) AS ?p ) { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?j } } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?b = ?p ) . { SELECT DISTINCT ( MIN ( ?o ) AS ?p ) { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?j } } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?b = ?p ) . { SELECT DISTINCT ( MIN ( ?o ) AS ?p ) { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?j } } }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?b = ?p ) . { SELECT DISTINCT ( MIN ( ?o ) AS ?p ) { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?j } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q537750
P1303
Q34379 Q502895
USER
How many musical instruments are played by more number of people than Djembe ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q537750
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:P1303 ?g . ?y rdf:type ontology:Q502895 . ?g rdf:type ontology:Q34379 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Q537750 property:P1303 ?v . ?v rdf:type ontology:Q34379 } } . FILTER ( ?x > ?z ) }
Djembe
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Djembe
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:instrument ?g . ?y rdf:type ontology:common_name . ?g rdf:type ontology:musical_instrument } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Djembe property:instrument ?v . ?v rdf:type ontology:musical_instrument } } . FILTER ( ?x > ?z ) }
[]
musical instrument common name
SYSTEM
22
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q537750
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:P1303 ?g . ?y rdf:type ontology:Q502895 . ?g rdf:type ontology:Q34379 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Q537750 property:P1303 ?v . ?v rdf:type ontology:Q34379 } } . FILTER ( ?x > ?z ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
22
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Djembe
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:instrument ?g . ?y rdf:type ontology:common_name . ?g rdf:type ontology:musical_instrument } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Djembe property:instrument ?v . ?v rdf:type ontology:musical_instrument } } . FILTER ( ?x > ?z ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q2221906 Q271669 Q56061
USER
Which administrative territories have max number of geographic locations or landforms as their namesake ?
(c(Q56061),P138,c(Q2221906)|c(Q271669))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q2221906
action find_tuple_counts
relation P138
type Q56061
type Q271669
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?r ) WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:Q2221906 ) ( ontology:Q271669 ) } } GROUP BY ?n } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?k ) { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?u ) WHERE { { ?q property:P138 ?i . ?q rdf:type ontology:Q56061 . ?i rdf:type ontology:Q2221906 } UNION { ?q property:P138 ?i . ?q rdf:type ontology:Q56061 . ?i rdf:type ontology:Q271669 } } GROUP BY ?q } } }
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type geographic location
action find_tuple_counts
relation named after
type administrative territorial entity
type landform
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'landform'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?r ) WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:geographic_location ) ( ontology:landform ) } } GROUP BY ?n } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?k ) { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?u ) WHERE { { ?q property:named_after ?i . ?q rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:geographic_location } UNION { ?q property:named_after ?i . ?q rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:landform } } GROUP BY ?q } } }
[]
geographic location landform administrative territorial entity
Q458 Q2840555 Q3029792
SYSTEM
European Union, Sint Annaparochie, Nij Altoenae
Q1982848 Q2840555 Q3029792 Q458
(c(Q56061),P138,c(Q2221906)|c(Q271669))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q2221906
action find_tuple_counts
relation P138
type Q56061
type Q271669
[ANSWERS] have max number of geographic locations or landforms as their namesake
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?r ) WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:Q2221906 ) ( ontology:Q271669 ) } } GROUP BY ?n } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?k ) { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?u ) WHERE { { ?q property:P138 ?i . ?q rdf:type ontology:Q56061 . ?i rdf:type ontology:Q2221906 } UNION { ?q property:P138 ?i . ?q rdf:type ontology:Q56061 . ?i rdf:type ontology:Q271669 } } GROUP BY ?q } } }
New Norfolk Sint Annaparochie Nij Altoenae European Union
European Union, Sint Annaparochie and Nij Altoenae have max number of geographic locations or landforms as their namesake
European Union Sint Annaparochie Nij Altoenae
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type geographic location
action find_tuple_counts
relation named after
type administrative territorial entity
type landform
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'landform'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?r ) WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:geographic_location ) ( ontology:landform ) } } GROUP BY ?n } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?k ) { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?u ) WHERE { { ?q property:named_after ?i . ?q rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:geographic_location } UNION { ?q property:named_after ?i . ?q rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:landform } } GROUP BY ?q } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q561686
P161
Q838948 Q15416
USER
How many works of art and television programs do François Sagat star in ?
(c(Q838948),P161,Q561686) (c(Q15416),P161,Q561686)
action count
action union
action filter_type
action find_reverse
entity Q561686
relation P161
type Q838948
action filter_type
action find_reverse
entity Q561686
relation P161
type Q15416
[{'concept': 'Q838948'}, 'P161', 'Q561686'] [{'concept': 'Q15416'}, 'P161', 'Q561686']
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { VALUES ( ?q ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?r rdf:type ?q }
François Sagat
action count
action union
action filter_type
action find_reverse
entity François Sagat
relation cast member
type work of art
action filter_type
action find_reverse
entity François Sagat
relation cast member
type television program
[{'concept': 'work of art'}, 'cast member', 'François Sagat'] [{'concept': 'television program'}, 'cast member', 'François Sagat']
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { VALUES ( ?q ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?r rdf:type ?q }
[]
work of art television program
SYSTEM
5 works of art and 1 television programs
Q6511050 Q1994635 Q834327 Q2072909 Q3211174 Q544978
(c(Q838948),P161,Q561686) (c(Q15416),P161,Q561686)
action count
action union
action filter_type
action find_reverse
entity Q561686
relation P161
type Q838948
action filter_type
action find_reverse
entity Q561686
relation P161
type Q15416
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q561686'] [{'concept': 'Q15416'}, 'P161', 'Q561686']
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { VALUES ( ?q ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?r rdf:type ?q }
Lebanon Man at Bath Saw VI L.A. Zombie La nudité toute nue Arabesque
5 works of art and 1 television programs
action count
action union
action filter_type
action find_reverse
entity François Sagat
relation cast member
type work of art
action filter_type
action find_reverse
entity François Sagat
relation cast member
type television program
[{'concept': 'work of art'}, 'cast member', 'François Sagat'] [{'concept': 'television program'}, 'cast member', 'François Sagat']
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { VALUES ( ?q ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?r rdf:type ?q }
[]