Simple Question (Direct)
Simple Question
Q1159108
P106
Q12737077
USER
What do Dan Levinson do for a living ?
(Q1159108,P106,c(Q12737077))
action filter_type
action find
entity Q1159108
relation P106
type Q12737077
['Q1159108', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q1159108 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Dan Levinson
action filter_type
action find
entity Dan Levinson
relation occupation
type occupation
['Dan Levinson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Dan_Levinson property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q12800682 Q118865 Q15981151
SYSTEM
saxophonist, clarinetist, jazz musician
Q12800682 Q118865 Q15981151
(Q1159108,P106,c(Q12737077))
action filter_type
action find
entity Q1159108
relation P106
type Q12737077
Dan Levinson do for a living for [ANSWERS]
['Q1159108', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q1159108 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
saxophonist clarinetist jazz musician
Dan Levinson do for a living for saxophonist, clarinetist and jazz musician
saxophonist clarinetist jazz musician
action filter_type
action find
entity Dan Levinson
relation occupation
type occupation
['Dan Levinson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Dan_Levinson property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1159108
P136
Q151885
USER
Which concept is the genre for that person ?
(Q12800682,P136,c(Q151885)) (Q118865,P136,c(Q151885)) (Q15981151,P136,c(Q151885))
action filter_type
action find
entity Q1159108
relation P136
type Q151885
['Q12800682', 'P136', {'concept': 'Q151885'}] ['Q118865', 'P136', {'concept': 'Q151885'}] ['Q15981151', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { resource:Q1159108 property:P136 ?u . ?u rdf:type ontology:Q151885 }
Dan Levinson
action filter_type
action find
entity Dan Levinson
relation genre
type concept
['saxophonist', 'genre', {'concept': 'concept'}] ['clarinetist', 'genre', {'concept': 'concept'}] ['jazz musician', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { resource:Dan_Levinson property:genre ?u . ?u rdf:type ontology:concept }
[]
concept
Q8341
SYSTEM
jazz
Q8341
(Q12800682,P136,c(Q151885)) (Q118865,P136,c(Q151885)) (Q15981151,P136,c(Q151885))
action filter_type
action find
entity Q1159108
relation P136
type Q151885
[ANSWER] is the genre for that person
['Q12800682', 'P136', {'concept': 'Q151885'}] ['Q118865', 'P136', {'concept': 'Q151885'}] ['Q15981151', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { resource:Q1159108 property:P136 ?u . ?u rdf:type ontology:Q151885 }
jazz
Jazz is the genre for that person
jazz
action filter_type
action find
entity Dan Levinson
relation genre
type concept
['saxophonist', 'genre', {'concept': 'concept'}] ['clarinetist', 'genre', {'concept': 'concept'}] ['jazz musician', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { resource:Dan_Levinson property:genre ?u . ?u rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q151885 Q82799
USER
How many names have atleast 1 concept as their toponym ?
(c(Q82799),P138,c(Q151885))
action count
action atleast
action find_tuple_counts
relation P138
type Q82799
type Q151885
value 1
[{'concept': 'Q82799'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?q ) WHERE { ?a property:P138 ?m . ?a rdf:type ontology:Q82799 . ?m rdf:type ontology:Q151885 } GROUP BY ?a } . FILTER ( ?q >= 1 ) }
action count
action atleast
action find_tuple_counts
relation named after
type name
type concept
value 1
[{'concept': 'name'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?q ) WHERE { ?a property:named_after ?m . ?a rdf:type ontology:name . ?m rdf:type ontology:concept } GROUP BY ?a } . FILTER ( ?q >= 1 ) }
[]
concept name
SYSTEM
1
Q13626156
(c(Q82799),P138,c(Q151885))
action count
action atleast
action find_tuple_counts
relation P138
type Q82799
type Q151885
value 1
[ANSWER]
[{'concept': 'Q82799'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?q ) WHERE { ?a property:P138 ?m . ?a rdf:type ontology:Q82799 . ?m rdf:type ontology:Q151885 } GROUP BY ?a } . FILTER ( ?q >= 1 ) }
Ackermann
1
action count
action atleast
action find_tuple_counts
relation named after
type name
type concept
value 1
[{'concept': 'name'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?q ) WHERE { ?a property:named_after ?m . ?a rdf:type ontology:name . ?m rdf:type ontology:concept } GROUP BY ?a } . FILTER ( ?q >= 1 ) }
[]