Simple Question (Direct)
Simple Question
Q5213935
P641
Q349
USER
Which sport was Dan Marney a part of ?
(Q5213935,P641,c(Q349))
action filter_type
action find
entity Q5213935
relation P641
type Q349
['Q5213935', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q5213935 property:P641 ?y . ?y rdf:type ontology:Q349 }
Dan Marney
action filter_type
action find
entity Dan Marney
relation sport
type sport
['Dan Marney', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Dan_Marney property:sport ?y . ?y rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5213935,P641,c(Q349))
action filter_type
action find
entity Q5213935
relation P641
type Q349
Which sport was Dan Marney a part of
['Q5213935', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q5213935 property:P641 ?y . ?y rdf:type ontology:Q349 }
association football
Which sport was Dan Marney a part of
association football
action filter_type
action find
entity Dan Marney
relation sport
type sport
['Dan Marney', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Dan_Marney property:sport ?y . ?y rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5213935
P21
Q290
USER
What is the sex of Dan Marney ?
(Q5213935,P21,c(Q290))
action filter_type
action find
entity Q5213935
relation P21
type Q290
['Q5213935', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q5213935 property:P21 ?a . ?a rdf:type ontology:Q290 }
Dan Marney
action filter_type
action find
entity Dan Marney
relation gender
type sex
['Dan Marney', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Dan_Marney property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5213935,P21,c(Q290))
action filter_type
action find
entity Q5213935
relation P21
type Q290
The sex of Dan Marney is a [ANSWER]
['Q5213935', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q5213935 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
The sex of Dan Marney is a male
male
action filter_type
action find
entity Dan Marney
relation gender
type sex
['Dan Marney', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Dan_Marney property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q110270
Q290
USER
And what about Fritz Grosse?
(Q110270,P21,c(Q290))
action filter_type
action find
entity Q110270
relation P21
type Q290
['Q110270', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q110270 property:P21 ?b . ?b rdf:type ontology:Q290 }
Fritz Grosse
action filter_type
action find
entity Fritz Grosse
relation gender
type sex
['Fritz Grosse', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Fritz_Grosse property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q110270,P21,c(Q290))
action filter_type
action find
entity Q110270
relation P21
type Q290
[ANSWER]
['Q110270', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q110270 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Fritz Grosse
relation gender
type sex
['Fritz Grosse', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Fritz_Grosse property:gender ?b . ?b rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P180
Q340169 Q3305213
USER
How many medias or paintings depict that sex ?
(c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097) (c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097'] [{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { ?j rdf:type ontology:Q340169 . ?j property:P180 resource:Q6581097 } UNION { ?j property:P180 resource:Q6581097 . ?j rdf:type ontology:Q3305213 } }
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type media
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male'] [{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { ?j rdf:type ontology:media . ?j property:depicts resource:male } UNION { ?j property:depicts resource:male . ?j rdf:type ontology:painting } }
[]
media painting
SYSTEM
2
Q18713957 Q20020115
(c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097) (c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[ANSWER]
[{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097'] [{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { ?j rdf:type ontology:Q340169 . ?j property:P180 resource:Q6581097 } UNION { ?j property:P180 resource:Q6581097 . ?j rdf:type ontology:Q3305213 } }
Raja Surendra Vikram Shah at the age of 15 with his prime minister Portrait of a Young Man
2
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type media
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male'] [{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { ?j rdf:type ontology:media . ?j property:depicts resource:male } UNION { ?j property:depicts resource:male . ?j rdf:type ontology:painting } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q349 Q502895 Q18608583
USER
How many sports did approximately 18336 people and recurring sporting events participate in ?
(c(Q502895)|c(Q18608583),P641,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
action find_reverse_tuple_counts
relation P641
type Q349
type Q18608583
value 18336
[[{'concept': 'Q502895'}, {'concept': 'Q18608583'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?g ) { ( ontology:Q18608583 ) ( ontology:Q502895 ) } . ?a rdf:type ?g } GROUP BY ?n } . FILTER ( ?s = 18336 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation sport
type sport
type common name
action find_reverse_tuple_counts
relation sport
type sport
type recurring sporting event
value 18336
[[{'concept': 'common name'}, {'concept': 'recurring sporting event'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?g ) { ( ontology:recurring_sporting_event ) ( ontology:common_name ) } . ?a rdf:type ?g } GROUP BY ?n } . FILTER ( ?s = 18336 ) }
[]
sport common name recurring sporting event
SYSTEM
3
Q7291 Q5372 Q41466
(c(Q502895)|c(Q18608583),P641,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
action find_reverse_tuple_counts
relation P641
type Q349
type Q18608583
value 18336
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q18608583'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?g ) { ( ontology:Q18608583 ) ( ontology:Q502895 ) } . ?a rdf:type ?g } GROUP BY ?n } . FILTER ( ?s = 18336 ) }
badminton basketball ice hockey
3
action count
action approx
action union
action find_reverse_tuple_counts
relation sport
type sport
type common name
action find_reverse_tuple_counts
relation sport
type sport
type recurring sporting event
value 18336
[[{'concept': 'common name'}, {'concept': 'recurring sporting event'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?g ) { ( ontology:recurring_sporting_event ) ( ontology:common_name ) } . ?a rdf:type ?g } GROUP BY ?n } . FILTER ( ?s = 18336 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do min number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?t ) WHERE { ?a property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?l } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?o = ?s ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?t ) WHERE { ?a property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?l } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?o = ?s ) }
[]
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
Min number of people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?t ) WHERE { ?a property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?l } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?o = ?s ) }
spoon cajón wind instrument
Min number of people know about spoon, cajón and wind instrument
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 ?r WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?t ) WHERE { ?a property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?l } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?o = ?s ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P180
Q34379 Q386724 Q3305213
USER
How many musical instruments are demonstrated in more number of works and paintings than that musical instrument ?
(c(Q386724)|c(Q3305213),P180,c(Q34379))
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q19925980 }
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:work . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:painting }
[]
musical instrument work painting
Comparative|Count over More/Less|Mult. entity type|Clarification
Q173453
SYSTEM
Did you mean wind instrument ?
(c(Q386724)|c(Q3305213),P180,c(Q34379))
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q19925980 }
Did you mean wind instrument ?
wind instrument
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:work . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:painting }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q386724)|c(Q3305213),P180,c(Q34379))
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
[]
SYSTEM
5
Q201129 Q1148709 Q1141589 Q8355 Q11404
(c(Q386724)|c(Q3305213),P180,c(Q34379))
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q19925980 }
lyre grand piano Crotales violin drum
5
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:work . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:painting }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5213935
P106
Q12737077
USER
What is the job of Dan Marney ?
(Q5213935,P106,c(Q12737077))
action filter_type
action find
entity Q5213935
relation P106
type Q12737077
['Q5213935', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q5213935 property:P106 ?u }
Dan Marney
action filter_type
action find
entity Dan Marney
relation occupation
type occupation
['Dan Marney', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Dan_Marney property:occupation ?u }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5213935,P106,c(Q12737077))
action filter_type
action find
entity Q5213935
relation P106
type Q12737077
The job of Dan Marney is an [ANSWER]
['Q5213935', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q5213935 property:P106 ?u }
association football player
The job of Dan Marney is an association football player
association football player
action filter_type
action find
entity Dan Marney
relation occupation
type occupation
['Dan Marney', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Dan_Marney property:occupation ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5213935
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q5213935
relation P27
type Q15617994
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q5213935 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Dan Marney
action filter_type
action find
entity Dan Marney
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Dan_Marney property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q5213935
relation P27
type Q15617994
[ANSWER] is the native country of that person
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q5213935 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the native country of that person
United Kingdom
action filter_type
action find
entity Dan Marney
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Dan_Marney property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with approximately the same number of administrative territories as Grenada ?
(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 Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?e ) WHERE { ?v property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?e = ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q769 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } }
Grenada
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?e ) WHERE { ?v property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?e = ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Grenada property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } }
[]
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 Q769
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?e ) WHERE { ?v property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?e = ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q769 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } }
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?e ) WHERE { ?v property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?e = ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Grenada property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q34379 Q1792379 Q340169
USER
Which musical instruments are depicted in exactly 1 art genres or medias ?
(c(Q1792379)|c(Q340169),P180,c(Q34379))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
value 1
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) ?i WHERE { ?a rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } } GROUP BY ?i } }
action equal
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type art genre
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
value 1
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) ?i WHERE { ?a rdf:type ?y . VALUES ( ?y ) { ( ontology:art_genre ) ( ontology:media ) } } GROUP BY ?i } }
[]
musical instrument art genre media
Q80019 Q8355 Q11404
SYSTEM
double bass, violin, drum
Q80019 Q8355 Q11404
(c(Q1792379)|c(Q340169),P180,c(Q34379))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
value 1
[ANSWERS] are depicted in exactly 1 art genres or medias
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) ?i WHERE { ?a rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } } GROUP BY ?i } }
double bass violin drum
Double bass, violin and drum are depicted in exactly 1 art genres or medias
double bass violin drum
action equal
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type art genre
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
value 1
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) ?i WHERE { ?a rdf:type ?y . VALUES ( ?y ) { ( ontology:art_genre ) ( ontology:media ) } } GROUP BY ?i } }
[]