Simple Question (Direct)
Simple Question
Q15406902
P1303
Q2424752
USER
Which product does Vincent Gemignani know to play ?
(Q15406902,P1303,c(Q2424752))
action filter_type
action find
entity Q15406902
relation P1303
type Q2424752
['Q15406902', 'P1303', {'concept': 'Q2424752'}]
SELECT DISTINCT ?c WHERE { resource:Q15406902 property:P1303 ?c . ?c rdf:type ontology:Q2424752 }
Vincent Gemignani
action filter_type
action find
entity Vincent Gemignani
relation instrument
type product
['Vincent Gemignani', 'instrument', {'concept': 'product'}]
SELECT DISTINCT ?c WHERE { resource:Vincent_Gemignani property:instrument ?c . ?c rdf:type ontology:product }
[]
product
Q133163
SYSTEM
percussion instrument
Q133163
(Q15406902,P1303,c(Q2424752))
action filter_type
action find
entity Q15406902
relation P1303
type Q2424752
Vincent Gemignani knows a [ANSWER]
['Q15406902', 'P1303', {'concept': 'Q2424752'}]
SELECT DISTINCT ?c WHERE { resource:Q15406902 property:P1303 ?c . ?c rdf:type ontology:Q2424752 }
percussion instrument
Vincent Gemignani knows a percussion instrument
percussion instrument
action filter_type
action find
entity Vincent Gemignani
relation instrument
type product
['Vincent Gemignani', 'instrument', {'concept': 'product'}]
SELECT DISTINCT ?c WHERE { resource:Vincent_Gemignani property:instrument ?c . ?c rdf:type ontology:product }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q133163
P425
Q12737077
USER
Which occupation does that product belong to ?
(c(Q12737077),P425,Q133163)
action filter_type
action find_reverse
entity Q133163
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q133163']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . ?p property:P425 resource:Q133163 }
percussion instrument
action filter_type
action find_reverse
entity percussion instrument
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'percussion instrument']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . ?p property:field_of_this_occupation resource:percussion_instrument }
[]
occupation
Q17344998
SYSTEM
percussionist
Q17344998
(c(Q12737077),P425,Q133163)
action filter_type
action find_reverse
entity Q133163
relation P425
type Q12737077
That product belongs to [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q133163']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . ?p property:P425 resource:Q133163 }
percussionist
That product belongs to percussionist
percussionist
action filter_type
action find_reverse
entity percussion instrument
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'percussion instrument']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . ?p property:field_of_this_occupation resource:percussion_instrument }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q17344998 Q1742083
P106
Q502895
USER
Does William Mole have the profession of that occupation ?
(Q1742083,P106,Q17344998)
action is_in
entity Q1742083
action find
entity Q17344998
relation P106
['Q1742083', 'P106', 'Q17344998']
ASK WHERE { resource:Q17344998 property:P106 resource:Q1742083 }
percussionist William Mole
action is_in
entity William Mole
action find
entity percussionist
relation occupation
['William Mole', 'occupation', 'percussionist']
ASK WHERE { resource:percussionist property:occupation resource:William_Mole }
[]
common name
SYSTEM
NO
(Q1742083,P106,Q17344998)
action is_in
entity Q1742083
action find
entity Q17344998
relation P106
[ANSWER]
['Q1742083', 'P106', 'Q17344998']
ASK WHERE { resource:Q17344998 property:P106 resource:Q1742083 }
No
action is_in
entity William Mole
action find
entity percussionist
relation occupation
['William Mole', 'occupation', 'percussionist']
ASK WHERE { resource:percussionist property:occupation resource:William_Mole }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15406902
P135
Q151885
USER
Which concept was Vincent Gemignani linked with ?
(Q15406902,P135,c(Q151885))
action filter_type
action find
entity Q15406902
relation P135
type Q151885
['Q15406902', 'P135', {'concept': 'Q151885'}]
SELECT DISTINCT ?s WHERE { resource:Q15406902 property:P135 ?s . ?s rdf:type ontology:Q151885 }
Vincent Gemignani
action filter_type
action find
entity Vincent Gemignani
relation movement
type concept
['Vincent Gemignani', 'movement', {'concept': 'concept'}]
SELECT DISTINCT ?s WHERE { resource:Vincent_Gemignani property:movement ?s . ?s rdf:type ontology:concept }
[]
concept
Q9730
SYSTEM
classical music
Q9730
(Q15406902,P135,c(Q151885))
action filter_type
action find
entity Q15406902
relation P135
type Q151885
Vincent Gemignani was linked to [ANSWER]
['Q15406902', 'P135', {'concept': 'Q151885'}]
SELECT DISTINCT ?s WHERE { resource:Q15406902 property:P135 ?s . ?s rdf:type ontology:Q151885 }
classical music
Vincent Gemignani was linked to classical music
classical music
action filter_type
action find
entity Vincent Gemignani
relation movement
type concept
['Vincent Gemignani', 'movement', {'concept': 'concept'}]
SELECT DISTINCT ?s WHERE { resource:Vincent_Gemignani property:movement ?s . ?s rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P636
Q151885 Q12136 Q8386
USER
How many concepts are the routes of administration of atleast 15 diseases and drugs ?
(c(Q12136)|c(Q8386),P636,c(Q151885))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
value 15
[[{'concept': 'Q12136'}, {'concept': 'Q8386'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { FILTER ( ?m >= 15 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?s WHERE { { ?h property:P636 ?s . ?h rdf:type ontology:Q12136 . ?s rdf:type ontology:Q151885 } UNION { ?s rdf:type ontology:Q151885 . ?h rdf:type ontology:Q8386 . ?h property:P636 ?s } } GROUP BY ?s } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type disease
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
value 15
[[{'concept': 'disease'}, {'concept': 'drug'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { FILTER ( ?m >= 15 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?s WHERE { { ?h property:route_of_administration ?s . ?h rdf:type ontology:disease . ?s rdf:type ontology:concept } UNION { ?s rdf:type ontology:concept . ?h rdf:type ontology:drug . ?h property:route_of_administration ?s } } GROUP BY ?s } }
[]
concept disease drug
SYSTEM
2
Q640448 Q285166
(c(Q12136)|c(Q8386),P636,c(Q151885))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
value 15
[ANSWER]
[[{'concept': 'Q12136'}, {'concept': 'Q8386'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { FILTER ( ?m >= 15 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?s WHERE { { ?h property:P636 ?s . ?h rdf:type ontology:Q12136 . ?s rdf:type ontology:Q151885 } UNION { ?s rdf:type ontology:Q151885 . ?h rdf:type ontology:Q8386 . ?h property:P636 ?s } } GROUP BY ?s } }
intravenous infusion oral administration
2
action count
action atleast
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type disease
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
value 15
[[{'concept': 'disease'}, {'concept': 'drug'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { FILTER ( ?m >= 15 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?s WHERE { { ?h property:route_of_administration ?s . ?h rdf:type ontology:disease . ?s rdf:type ontology:concept } UNION { ?s rdf:type ontology:concept . ?h rdf:type ontology:drug . ?h property:route_of_administration ?s } } GROUP BY ?s } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15406902
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
action filter_type
action find
entity Q15406902
relation P27
type Q15617994
SELECT DISTINCT ?k WHERE { resource:Q15406902 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Vincent Gemignani
action filter_type
action find
entity Vincent Gemignani
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?k WHERE { resource:Vincent_Gemignani property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
action filter_type
action find
entity Q15406902
relation P27
type Q15617994
The [ANSWER] is the native country of that person
SELECT DISTINCT ?k WHERE { resource:Q15406902 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
France
The France is the native country of that person
France
action filter_type
action find
entity Vincent Gemignani
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?k WHERE { resource:Vincent_Gemignani property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q5182696 Q15406902
P27
Q15617994
USER
Or Crauford Kent?
OR((Q15406902,P27,c(Q15617994)), (Q5182696,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15406902
relation P27
action find
entity Q5182696
relation P27
type Q15617994
{'OR': [['Q15406902', 'P27', {'concept': 'Q15617994'}], ['Q5182696', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { ?z property:P27 ?p . VALUES ( ?z ) { ( resource:Q5182696 ) ( resource:Q15406902 ) } } . ?p rdf:type ontology:Q15617994 }
Crauford Kent Vincent Gemignani
action filter_type
action union
action find
entity Vincent Gemignani
relation country of citizenship
action find
entity Crauford Kent
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Vincent Gemignani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Crauford Kent', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { ?z property:country_of_citizenship ?p . VALUES ( ?z ) { ( resource:Crauford_Kent ) ( resource:Vincent_Gemignani ) } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q145
SYSTEM
France, United Kingdom
Q142 Q145
OR((Q15406902,P27,c(Q15617994)), (Q5182696,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15406902
relation P27
action find
entity Q5182696
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q15406902', 'P27', {'concept': 'Q15617994'}], ['Q5182696', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { ?z property:P27 ?p . VALUES ( ?z ) { ( resource:Q5182696 ) ( resource:Q15406902 ) } } . ?p rdf:type ontology:Q15617994 }
France United Kingdom
France United Kingdom
action filter_type
action union
action find
entity Vincent Gemignani
relation country of citizenship
action find
entity Crauford Kent
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Vincent Gemignani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Crauford Kent', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { ?z property:country_of_citizenship ?p . VALUES ( ?z ) { ( resource:Crauford_Kent ) ( resource:Vincent_Gemignani ) } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q142 Q145
P30
Q2221906
USER
Where are France and United Kingdom situated ?
(Q142,P30,c(Q2221906)) (Q145,P30,c(Q2221906))
action union
action filter_type
action find
entity Q142
relation P30
type Q2221906
action filter_type
action find
entity Q145
relation P30
type Q2221906
['Q142', 'P30', {'concept': 'Q2221906'}] ['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { ?g property:P30 ?b . VALUES ( ?g ) { ( resource:Q142 ) ( resource:Q145 ) } }
France United Kingdom
action union
action filter_type
action find
entity France
relation continent
type geographic location
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['France', 'continent', {'concept': 'geographic location'}] ['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { ?g property:continent ?b . VALUES ( ?g ) { ( resource:France ) ( resource:United_Kingdom ) } }
[]
geographic location
Q51 Q15 Q46
SYSTEM
Antarctica, Africa, Europe
Q46 Q15 Q51 Q828 Q538 Q46
(Q142,P30,c(Q2221906)) (Q145,P30,c(Q2221906))
action union
action filter_type
action find
entity Q142
relation P30
type Q2221906
action filter_type
action find
entity Q145
relation P30
type Q2221906
France and United Kingdom are situated in [ANSWERS]
['Q142', 'P30', {'concept': 'Q2221906'}] ['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { ?g property:P30 ?b . VALUES ( ?g ) { ( resource:Q142 ) ( resource:Q145 ) } }
Europe Africa Antarctica Americas Oceania Europe
France and United Kingdom are situated in Antarctica, Africa and Europe
Antarctica Africa Europe
action union
action filter_type
action find
entity France
relation continent
type geographic location
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['France', 'continent', {'concept': 'geographic location'}] ['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { ?g property:continent ?b . VALUES ( ?g ) { ( resource:France ) ( resource:United_Kingdom ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15
P921
Q2342494
USER
What are that geographic location a main subject of ?
(c(Q2342494),P921,Q15)
action filter_type
action find_reverse
entity Q15
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q15']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2342494 . ?g property:P921 resource:Q15 }
Africa
action filter_type
action find_reverse
entity Africa
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'Africa']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:collectable . ?g property:main_subject resource:Africa }
[]
collectable
Clarification for simple ques.
Q46
SYSTEM
Did you mean Europe ?
Q51 Q15 Q46
(c(Q2342494),P921,Q51) (c(Q2342494),P921,Q15) (c(Q2342494),P921,Q46)
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q51'] [{'concept': 'Q2342494'}, 'P921', 'Q15'] [{'concept': 'Q2342494'}, 'P921', 'Q46']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2342494 . ?g property:P921 resource:Q15 }
Antarctica Africa Europe
Did you mean Europe ?
Europe
[{'concept': 'collectable'}, 'main subject', 'Antarctica'] [{'concept': 'collectable'}, 'main subject', 'Africa'] [{'concept': 'collectable'}, 'main subject', 'Europe']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:collectable . ?g property:main_subject resource:Africa }
[]
Simple Question (Coreferenced)
USER
No, I meant Africa. Could you tell me the answer for that?
(c(Q2342494),P921,Q15)
Q15
[{'concept': 'Q2342494'}, 'P921', 'Q15']
[{'concept': 'collectable'}, 'main subject', 'Africa']
[]
Q18205780 Q12071418
SYSTEM
Description of Africa, Travels to Discover the Source of the Nile
Q18205780 Q12071418
(c(Q2342494),P921,Q15)
action filter_type
action find_reverse
entity Q15
relation P921
type Q2342494
That geographic location a main subject of are the [ANSWERS]
[{'concept': 'Q2342494'}, 'P921', 'Q15']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2342494 . ?g property:P921 resource:Q15 }
Description of Africa Travels to Discover the Source of the Nile
That geographic location a main subject of are the Description of Africa and Travels to Discover the Source of the Nile
Description of Africa Travels to Discover the Source of the Nile
action filter_type
action find_reverse
entity Africa
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'Africa']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:collectable . ?g property:main_subject resource:Africa }
[]