Simple Question (Direct)
Simple Question
Q10311599
P106
Q12737077
USER
Which occupation has João Guilherme Ratcliff as his/her 's career ?
(Q10311599,P106,c(Q12737077))
action filter_type
action find
entity Q10311599
relation P106
type Q12737077
['Q10311599', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q10311599 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
João Guilherme Ratcliff
action filter_type
action find
entity João Guilherme Ratcliff
relation occupation
type occupation
['João Guilherme Ratcliff', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:João_Guilherme_Ratcliff property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q49757
SYSTEM
poet
Q49757
(Q10311599,P106,c(Q12737077))
action filter_type
action find
entity Q10311599
relation P106
type Q12737077
The [ANSWER] has João Guilherme Ratcliff as his/her 's career
['Q10311599', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q10311599 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
poet
The poet has João Guilherme Ratcliff as his/her 's career
poet
action filter_type
action find
entity João Guilherme Ratcliff
relation occupation
type occupation
['João Guilherme Ratcliff', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:João_Guilherme_Ratcliff property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10311599
P21
Q290
USER
Which sex does João Guilherme Ratcliff possess ?
(Q10311599,P21,c(Q290))
action filter_type
action find
entity Q10311599
relation P21
type Q290
['Q10311599', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q10311599 property:P21 ?w . ?w rdf:type ontology:Q290 }
João Guilherme Ratcliff
action filter_type
action find
entity João Guilherme Ratcliff
relation gender
type sex
['João Guilherme Ratcliff', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:João_Guilherme_Ratcliff property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q10311599,P21,c(Q290))
action filter_type
action find
entity Q10311599
relation P21
type Q290
João Guilherme Ratcliff possesses a [ANSWER]
['Q10311599', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q10311599 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
João Guilherme Ratcliff possesses a male
male
action filter_type
action find
entity João Guilherme Ratcliff
relation gender
type sex
['João Guilherme Ratcliff', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:João_Guilherme_Ratcliff property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P180
Q3305213
USER
Which painting depicts that sex ?
(c(Q3305213),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q3305213 . ?q property:P180 resource:Q6581097 }
male
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:painting . ?q property:depicts resource:male }
[]
painting
Q18713957
SYSTEM
Raja Surendra Vikram Shah at the age of 15 with his prime minister
Q18713957
(c(Q3305213),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[ANSWER] depicts that sex
[{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q3305213 . ?q property:P180 resource:Q6581097 }
Raja Surendra Vikram Shah at the age of 15 with his prime minister
Raja Surendra Vikram Shah at the age of 15 with his prime minister depicts that sex
Raja Surendra Vikram Shah at the age of 15 with his prime minister
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:painting . ?q property:depicts resource:male }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18713957
P170
Q502895
USER
Which person is credited with creation of that painting ?
(Q18713957,P170,c(Q502895))
action filter_type
action find
entity Q18713957
relation P170
type Q502895
['Q18713957', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q18713957 property:P170 ?m . ?m rdf:type ontology:Q502895 }
Raja Surendra Vikram Shah at the age of 15 with his prime minister
action filter_type
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation creator
type common name
['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:creator ?m . ?m rdf:type ontology:common_name }
[]
common name
Q4233718
SYSTEM
anonymous
Q4233718
(Q18713957,P170,c(Q502895))
action filter_type
action find
entity Q18713957
relation P170
type Q502895
[ANSWER] is credited with creation of that painting
['Q18713957', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q18713957 property:P170 ?m . ?m rdf:type ontology:Q502895 }
anonymous
Anonymous is credited with creation of that painting
anonymous
action filter_type
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation creator
type common name
['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:creator ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18713957
P1071
Q15617994
USER
Which administrative territory is the final assembly location of Raja Surendra Vikram Shah at the age of 15 with his prime minister ?
(Q18713957,P1071,c(Q15617994))
action filter_type
action find
entity Q18713957
relation P1071
type Q15617994
['Q18713957', 'P1071', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q18713957 property:P1071 ?o . ?o rdf:type ontology:Q15617994 }
Raja Surendra Vikram Shah at the age of 15 with his prime minister
action filter_type
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation location of final assembly
type designation for an administrative territorial entity
['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'location of final assembly', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:location_of_final_assembly ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q837
SYSTEM
Nepal
Q837
(Q18713957,P1071,c(Q15617994))
action filter_type
action find
entity Q18713957
relation P1071
type Q15617994
[ANSWER] is the final assembly location of Raja Surendra Vikram Shah at the age of 15 with his prime minister
['Q18713957', 'P1071', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q18713957 property:P1071 ?o . ?o rdf:type ontology:Q15617994 }
Nepal
Nepal is the final assembly location of Raja Surendra Vikram Shah at the age of 15 with his prime minister
Nepal
action filter_type
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation location of final assembly
type designation for an administrative territorial entity
['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'location of final assembly', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:location_of_final_assembly ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q18713957
P180
Q214609 Q151885
USER
How many materials or concepts are demonstrated in Raja Surendra Vikram Shah at the age of 15 with his prime minister ?
(Q18713957,P180,c(Q214609)) (Q18713957,P180,c(Q151885))
action count
action union
action filter_type
action find
entity Q18713957
relation P180
type Q214609
action filter_type
action find
entity Q18713957
relation P180
type Q151885
['Q18713957', 'P180', {'concept': 'Q214609'}] ['Q18713957', 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { resource:Q18713957 property:P180 ?o . ?o rdf:type ontology:Q151885 } UNION { resource:Q18713957 property:P180 ?o . ?o rdf:type ontology:Q214609 } }
Raja Surendra Vikram Shah at the age of 15 with his prime minister
action count
action union
action filter_type
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation depicts
type material
action filter_type
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation depicts
type concept
['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'depicts', {'concept': 'material'}] ['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:depicts ?o . ?o rdf:type ontology:concept } UNION { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:depicts ?o . ?o rdf:type ontology:material } }
[]
material concept
SYSTEM
2
Q163446 Q8441
(Q18713957,P180,c(Q214609)) (Q18713957,P180,c(Q151885))
action count
action union
action filter_type
action find
entity Q18713957
relation P180
type Q214609
action filter_type
action find
entity Q18713957
relation P180
type Q151885
[ANSWER]
['Q18713957', 'P180', {'concept': 'Q214609'}] ['Q18713957', 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { resource:Q18713957 property:P180 ?o . ?o rdf:type ontology:Q151885 } UNION { resource:Q18713957 property:P180 ?o . ?o rdf:type ontology:Q214609 } }
carpet man
2
action count
action union
action filter_type
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation depicts
type material
action filter_type
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation depicts
type concept
['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'depicts', {'concept': 'material'}] ['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:depicts ?o . ?o rdf:type ontology:concept } UNION { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:depicts ?o . ?o rdf:type ontology:material } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q15617994 Q11060274 Q340169
USER
Which administrative territories are expressed in max number of prints or medias ?
(c(Q11060274)|c(Q340169),P180,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
[[{'concept': 'Q11060274'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?m ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?q ) { ( ontology:Q11060274 ) ( ontology:Q340169 ) } . ?z rdf:type ?q } GROUP BY ?y } } . { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?l ) WHERE { { ?x property:P180 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q340169 } UNION { ?x property:P180 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q11060274 } } GROUP BY ?v } . FILTER ( ?l = ?m ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
[[{'concept': 'print'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?m ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?q ) { ( ontology:print ) ( ontology:media ) } . ?z rdf:type ?q } GROUP BY ?y } } . { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?l ) WHERE { { ?x property:depicts ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:media } UNION { ?x property:depicts ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:print } } GROUP BY ?v } . FILTER ( ?l = ?m ) }
[]
designation for an administrative territorial entity print media
Q80591
SYSTEM
Atrani
Q80591
(c(Q11060274)|c(Q340169),P180,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
[ANSWER] is expressed in max number of prints or medias
[[{'concept': 'Q11060274'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?m ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?q ) { ( ontology:Q11060274 ) ( ontology:Q340169 ) } . ?z rdf:type ?q } GROUP BY ?y } } . { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?l ) WHERE { { ?x property:P180 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q340169 } UNION { ?x property:P180 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q11060274 } } GROUP BY ?v } . FILTER ( ?l = ?m ) }
Atrani
Atrani is expressed in max number of prints or medias
Atrani
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
[[{'concept': 'print'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?m ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?q ) { ( ontology:print ) ( ontology:media ) } . ?z rdf:type ?q } GROUP BY ?y } } . { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?l ) WHERE { { ?x property:depicts ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:media } UNION { ?x property:depicts ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:print } } GROUP BY ?v } . FILTER ( ?l = ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q781
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with approximately the same number of administrative territories as Antigua and Barbuda ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?k ) WHERE { ?h property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q781 property:P530 ?u . ?u rdf:type ontology:Q1048835 } } . FILTER ( ?k = ?s ) }
Antigua and Barbuda
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?k ) WHERE { ?h property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity } } . FILTER ( ?k = ?s ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?k ) WHERE { ?h property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q781 property:P530 ?u . ?u rdf:type ontology:Q1048835 } } . FILTER ( ?k = ?s ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?k ) WHERE { ?h property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity } } . FILTER ( ?k = ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with atmost 67 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 67
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?y ) WHERE { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?y <= 67 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 67
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?y ) WHERE { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?y <= 67 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 67
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?y ) WHERE { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?y <= 67 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 67
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?y ) WHERE { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?y <= 67 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q80591
P19 P21
Q502895
USER
Which people were born at Atrani and are a male ?
AND((c(Q502895),P19,Q80591), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q80591
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q80591'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i property:P19 resource:Q80591 . ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q502895 }
male Atrani
action filter_type
action intersection
action find_reverse
entity Atrani
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Atrani'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i property:place_of_birth resource:Atrani . ?i property:gender resource:male . ?i rdf:type ontology:common_name }
[]
common name
Q22985075 Q3620340
SYSTEM
Enrico Proto, Antonio Zequila
Q22985075 Q3620340
AND((c(Q502895),P19,Q80591), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q80591
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at Atrani and are a male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q80591'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i property:P19 resource:Q80591 . ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q502895 }
Enrico Proto Antonio Zequila
Enrico Proto and Antonio Zequila were born at Atrani and are a male
Enrico Proto Antonio Zequila
action filter_type
action intersection
action find_reverse
entity Atrani
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Atrani'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i property:place_of_birth resource:Atrani . ?i property:gender resource:male . ?i rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q790468
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately the same number of people as baritone horn ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q790468
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Q790468 property:P1303 ?r . ?r rdf:type ontology:Q34379 } } . FILTER ( ?w = ?d ) }
baritone horn
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity baritone horn
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:baritone_horn property:instrument ?r . ?r rdf:type ontology:musical_instrument } } . FILTER ( ?w = ?d ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q790468
relation P1303
type Q34379
[ANSWERS] are played by approximately the same number of people as baritone horn
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Q790468 property:P1303 ?r . ?r rdf:type ontology:Q34379 } } . FILTER ( ?w = ?d ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano are played by approximately the same number of people as baritone horn
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity baritone horn
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:baritone_horn property:instrument ?r . ?r rdf:type ontology:musical_instrument } } . FILTER ( ?w = ?d ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P870
Q34379 Q9748
USER
How many musical instruments are used in greater number of concertoes than that musical instrument ?
(c(Q9748),P870,c(Q34379))
[{'concept': 'Q9748'}, 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q617028 ?y . ?z rdf:type ontology:Q9748 . ?y rdf:type ontology:Q34379 }
[{'concept': 'concerto'}, 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:instrumentation ?y . ?z rdf:type ontology:concerto . ?y rdf:type ontology:musical_instrument }
[]
musical instrument concerto
Comparative|Count over More/Less|Single entity type|Clarification
Q1178361
SYSTEM
Did you mean davul ?
(c(Q9748),P870,c(Q34379))
[ANSWER]
[{'concept': 'Q9748'}, 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q617028 ?y . ?z rdf:type ontology:Q9748 . ?y rdf:type ontology:Q34379 }
Did you mean davul ?
davul
[{'concept': 'concerto'}, 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:instrumentation ?y . ?z rdf:type ontology:concerto . ?y rdf:type ontology:musical_instrument }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant harpsichord. Could you tell me the answer for that?
(c(Q9748),P870,c(Q34379))
Q81982
[{'concept': 'Q9748'}, 'P870', {'concept': 'Q34379'}]
[{'concept': 'concerto'}, 'instrumentation', {'concept': 'musical instrument'}]
[]
SYSTEM
2
Q5994 Q8355
(c(Q9748),P870,c(Q34379))
[ANSWER]
[{'concept': 'Q9748'}, 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q617028 ?y . ?z rdf:type ontology:Q9748 . ?y rdf:type ontology:Q34379 }
piano violin
2
[{'concept': 'concerto'}, 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:instrumentation ?y . ?z rdf:type ontology:concerto . ?y rdf:type ontology:musical_instrument }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q644440
P1303
Q34379 Q502895
USER
How many musical instruments do lesser number of people know to play than Lap steel guitar ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q644440
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?y ) WHERE { ?d property:P1303 ?f . ?d rdf:type ontology:Q502895 . ?f rdf:type ontology:Q34379 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { ?v property:P1303 resource:Q644440 . ?v rdf:type ontology:Q502895 } } . FILTER ( ?y < ?w ) }
Lap steel guitar
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Lap steel guitar
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?y ) WHERE { ?d property:instrument ?f . ?d rdf:type ontology:common_name . ?f rdf:type ontology:musical_instrument } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { ?v property:instrument resource:Lap_steel_guitar . ?v rdf:type ontology:common_name } } . FILTER ( ?y < ?w ) }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q644440
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?y ) WHERE { ?d property:P1303 ?f . ?d rdf:type ontology:Q502895 . ?f rdf:type ontology:Q34379 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { ?v property:P1303 resource:Q644440 . ?v rdf:type ontology:Q502895 } } . FILTER ( ?y < ?w ) }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Lap steel guitar
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?y ) WHERE { ?d property:instrument ?f . ?d rdf:type ontology:common_name . ?f rdf:type ontology:musical_instrument } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { ?v property:instrument resource:Lap_steel_guitar . ?v rdf:type ontology:common_name } } . FILTER ( ?y < ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q669370
P1303
Q34379 Q502895
USER
And what about gusle?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q669370
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:Q502895 . ?f property:P1303 resource:Q669370 } } . FILTER ( ?t < ?h ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?b } }
gusle
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity gusle
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:common_name . ?f property:instrument resource:gusle } } . FILTER ( ?t < ?h ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?b } }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q669370
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:Q502895 . ?f property:P1303 resource:Q669370 } } . FILTER ( ?t < ?h ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?b } }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity gusle
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:common_name . ?f property:instrument resource:gusle } } . FILTER ( ?t < ?h ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?b } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22985075
P27
Q7275
USER
Which state is Enrico Proto a civilian of ?
(Q22985075,P27,c(Q7275))
action filter_type
action find
entity Q22985075
relation P27
type Q7275
['Q22985075', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q22985075 property:P27 ?l . ?l rdf:type ontology:Q7275 }
Enrico Proto
action filter_type
action find
entity Enrico Proto
relation country of citizenship
type state
['Enrico Proto', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Enrico_Proto property:country_of_citizenship ?l . ?l rdf:type ontology:state }
[]
state
Q172579
SYSTEM
Kingdom of Italy
Q172579
(Q22985075,P27,c(Q7275))
action filter_type
action find
entity Q22985075
relation P27
type Q7275
Which state is Enrico Proto a civilian of
['Q22985075', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q22985075 property:P27 ?l . ?l rdf:type ontology:Q7275 }
Kingdom of Italy
Which state is Enrico Proto a civilian of
Kingdom of Italy
action filter_type
action find
entity Enrico Proto
relation country of citizenship
type state
['Enrico Proto', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Enrico_Proto property:country_of_citizenship ?l . ?l rdf:type ontology:state }
[]