Simple Question (Direct)
Simple Question
Q10822003
P264
Q334453
USER
What is the record label of Suho ?
(Q10822003,P264,c(Q334453))
action filter_type
action find
entity Q10822003
relation P264
type Q334453
['Q10822003', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?s WHERE { resource:Q10822003 property:P264 ?s . ?s rdf:type ontology:Q334453 }
Suho
action filter_type
action find
entity Suho
relation record label
type division
['Suho', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?s WHERE { resource:Suho property:record_label ?s . ?s rdf:type ontology:division }
[]
division
Q483938
SYSTEM
S.M. Entertainment
Q483938
(Q10822003,P264,c(Q334453))
action filter_type
action find
entity Q10822003
relation P264
type Q334453
The record label of Suho is the [ANSWER]
['Q10822003', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?s WHERE { resource:Q10822003 property:P264 ?s . ?s rdf:type ontology:Q334453 }
S.M. Entertainment
The record label of Suho is the S.M. Entertainment
S.M. Entertainment
action filter_type
action find
entity Suho
relation record label
type division
['Suho', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?s WHERE { resource:Suho property:record_label ?s . ?s rdf:type ontology:division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10822003
P136
Q151885
USER
Which genre does Suho belong to ?
(Q10822003,P136,c(Q151885))
action filter_type
action find
entity Q10822003
relation P136
type Q151885
['Q10822003', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q151885 . resource:Q10822003 property:P136 ?q }
Suho
action filter_type
action find
entity Suho
relation genre
type concept
['Suho', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:concept . resource:Suho property:genre ?q }
[]
concept
Q213665
SYSTEM
K-pop
Q213665
(Q10822003,P136,c(Q151885))
action filter_type
action find
entity Q10822003
relation P136
type Q151885
Suho belongs to [ANSWER]
['Q10822003', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q151885 . resource:Q10822003 property:P136 ?q }
K-pop
Suho belongs to K-pop
K-pop
action filter_type
action find
entity Suho
relation genre
type concept
['Suho', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:concept . resource:Suho property:genre ?q }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q273283
P180
Q151885 Q3305213 Q340169
USER
How many concepts are demonstrated in greater number of paintings or medias than beggar ?
(c(Q3305213)|c(Q340169),P180,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q151885
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q273283
relation P180
type Q3305213
type Q340169
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?a ) WHERE { { ?c property:P180 ?e . ?e rdf:type ontology:Q151885 . ?c rdf:type ontology:Q340169 } UNION { ?c property:P180 ?e . ?e rdf:type ontology:Q151885 . ?c rdf:type ontology:Q3305213 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } . ?o property:P180 resource:Q273283 } } . FILTER ( ?a > ?j ) }
beggar
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type concept
type painting
action find_reverse_tuple_counts
relation depicts
type concept
type media
action count
action filter_multi_types
action find_reverse
entity beggar
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?a ) WHERE { { ?c property:depicts ?e . ?e rdf:type ontology:concept . ?c rdf:type ontology:media } UNION { ?c property:depicts ?e . ?e rdf:type ontology:concept . ?c rdf:type ontology:painting } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:painting ) ( ontology:media ) } } . ?o property:depicts resource:beggar } } . FILTER ( ?a > ?j ) }
[]
concept painting media
SYSTEM
12
Q177923 Q8436 Q467 Q43616 Q40953 Q527 Q8441 Q327055 Q6388 Q6537379 Q18121798 Q5167661
(c(Q3305213)|c(Q340169),P180,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q151885
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q273283
relation P180
type Q3305213
type Q340169
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?a ) WHERE { { ?c property:P180 ?e . ?e rdf:type ontology:Q151885 . ?c rdf:type ontology:Q340169 } UNION { ?c property:P180 ?e . ?e rdf:type ontology:Q151885 . ?c rdf:type ontology:Q3305213 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } . ?o property:P180 resource:Q273283 } } . FILTER ( ?a > ?j ) }
auction family woman mummy prayer sky man worker human swimming walking lovers' embrace justice
12
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type concept
type painting
action find_reverse_tuple_counts
relation depicts
type concept
type media
action count
action filter_multi_types
action find_reverse
entity beggar
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?a ) WHERE { { ?c property:depicts ?e . ?e rdf:type ontology:concept . ?c rdf:type ontology:media } UNION { ?c property:depicts ?e . ?e rdf:type ontology:concept . ?c rdf:type ontology:painting } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:painting ) ( ontology:media ) } } . ?o property:depicts resource:beggar } } . FILTER ( ?a > ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q703534
P180
Q151885 Q3305213 Q340169
USER
And also tell me about employee?
(c(Q3305213)|c(Q340169),P180,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q151885
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q703534
relation P180
type Q3305213
type Q340169
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { ?g property:P180 resource:Q703534 . { VALUES ( ?x ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } . ?g rdf:type ?x } } } . FILTER ( ?k > ?l ) . { SELECT DISTINCT ?c ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:P180 ?c . ?c rdf:type ontology:Q151885 . ?u rdf:type ontology:Q340169 } UNION { ?u property:P180 ?c . ?c rdf:type ontology:Q151885 . ?u rdf:type ontology:Q3305213 } } GROUP BY ?c } }
employee
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type concept
type painting
action find_reverse_tuple_counts
relation depicts
type concept
type media
action count
action filter_multi_types
action find_reverse
entity employee
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { ?g property:depicts resource:employee . { VALUES ( ?x ) { ( ontology:painting ) ( ontology:media ) } . ?g rdf:type ?x } } } . FILTER ( ?k > ?l ) . { SELECT DISTINCT ?c ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:depicts ?c . ?c rdf:type ontology:concept . ?u rdf:type ontology:media } UNION { ?u property:depicts ?c . ?c rdf:type ontology:concept . ?u rdf:type ontology:painting } } GROUP BY ?c } }
[]
concept painting media
SYSTEM
12
Q177923 Q8436 Q467 Q43616 Q40953 Q527 Q8441 Q327055 Q6388 Q6537379 Q18121798 Q5167661
(c(Q3305213)|c(Q340169),P180,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q151885
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q703534
relation P180
type Q3305213
type Q340169
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { ?g property:P180 resource:Q703534 . { VALUES ( ?x ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } . ?g rdf:type ?x } } } . FILTER ( ?k > ?l ) . { SELECT DISTINCT ?c ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:P180 ?c . ?c rdf:type ontology:Q151885 . ?u rdf:type ontology:Q340169 } UNION { ?u property:P180 ?c . ?c rdf:type ontology:Q151885 . ?u rdf:type ontology:Q3305213 } } GROUP BY ?c } }
auction family woman mummy prayer sky man worker human swimming walking lovers' embrace justice
12
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type concept
type painting
action find_reverse_tuple_counts
relation depicts
type concept
type media
action count
action filter_multi_types
action find_reverse
entity employee
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { ?g property:depicts resource:employee . { VALUES ( ?x ) { ( ontology:painting ) ( ontology:media ) } . ?g rdf:type ?x } } } . FILTER ( ?k > ?l ) . { SELECT DISTINCT ?c ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:depicts ?c . ?c rdf:type ontology:concept . ?u rdf:type ontology:media } UNION { ?u property:depicts ?c . ?c rdf:type ontology:concept . ?u rdf:type ontology:painting } } GROUP BY ?c } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q151885 Q11060274 Q17638008
USER
How many concepts are expressed in around 7 prints and game equipment ?
(c(Q11060274)|c(Q17638008),P180,c(Q151885))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q151885
type Q17638008
value 7
[[{'concept': 'Q11060274'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?u WHERE { VALUES ( ?f ) { ( ontology:Q17638008 ) ( ontology:Q11060274 ) } . ?n rdf:type ?f } GROUP BY ?u } . FILTER ( ?m = 7 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type concept
type print
action find_reverse_tuple_counts
relation depicts
type concept
type game equipment
value 7
[[{'concept': 'print'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?u WHERE { VALUES ( ?f ) { ( ontology:game_equipment ) ( ontology:print ) } . ?n rdf:type ?f } GROUP BY ?u } . FILTER ( ?m = 7 ) }
[]
concept print game equipment
SYSTEM
6
Q8436 Q189829 Q527 Q327055 Q2083958 Q1862087
(c(Q11060274)|c(Q17638008),P180,c(Q151885))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q151885
type Q17638008
value 7
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?u WHERE { VALUES ( ?f ) { ( ontology:Q17638008 ) ( ontology:Q11060274 ) } . ?n rdf:type ?f } GROUP BY ?u } . FILTER ( ?m = 7 ) }
family hermit sky worker pattern prisoner
6
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type concept
type print
action find_reverse_tuple_counts
relation depicts
type concept
type game equipment
value 7
[[{'concept': 'print'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?u WHERE { VALUES ( ?f ) { ( ontology:game_equipment ) ( ontology:print ) } . ?n rdf:type ?f } GROUP BY ?u } . FILTER ( ?m = 7 ) }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q36180 Q273283
P106
Q502895
USER
Which people have the profession of beggar but not writer ?
AND((c(Q502895),P106,Q273283), NOT((c(Q502895),P106,Q36180)))
action filter_type
action difference
action find_reverse
entity Q273283
relation P106
action find_reverse
entity Q36180
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q273283'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q36180']]}]}
SELECT DISTINCT ?r WHERE { ?r property:P106 resource:Q273283 . FILTER NOT EXISTS { ?r property:P106 resource:Q36180 } . ?r rdf:type ontology:Q502895 }
writer beggar
action filter_type
action difference
action find_reverse
entity beggar
relation occupation
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'beggar'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'writer']]}]}
SELECT DISTINCT ?r WHERE { ?r property:occupation resource:beggar . FILTER NOT EXISTS { ?r property:occupation resource:writer } . ?r rdf:type ontology:common_name }
[]
common name
Q1818047 Q1198509 Q3290722 Q9012544
SYSTEM
Lennet Kann, Salaün ar Foll, Marguerite Philippe, Jon Manteca
Q1818047 Q1198509 Q3290722 Q9012544
AND((c(Q502895),P106,Q273283), NOT((c(Q502895),P106,Q36180)))
action filter_type
action difference
action find_reverse
entity Q273283
relation P106
action find_reverse
entity Q36180
relation P106
type Q502895
[ANSWERS] have the profession of beggar but not writer
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q273283'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q36180']]}]}
SELECT DISTINCT ?r WHERE { ?r property:P106 resource:Q273283 . FILTER NOT EXISTS { ?r property:P106 resource:Q36180 } . ?r rdf:type ontology:Q502895 }
Lennet Kann Salaün ar Foll Marguerite Philippe Jon Manteca
Lennet Kann, Salaün ar Foll, Marguerite Philippe and Jon Manteca have the profession of beggar but not writer
Lennet Kann Salaün ar Foll Marguerite Philippe Jon Manteca
action filter_type
action difference
action find_reverse
entity beggar
relation occupation
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'beggar'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'writer']]}]}
SELECT DISTINCT ?r WHERE { ?r property:occupation resource:beggar . FILTER NOT EXISTS { ?r property:occupation resource:writer } . ?r rdf:type ontology:common_name }
[]