Simple Question (Direct)
Simple Question
Q2829041
P136
Q151885
USER
Which concept is the genre for Akiko Noma ?
(Q2829041,P136,c(Q151885))
action filter_type
action find
entity Q2829041
relation P136
type Q151885
['Q2829041', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?e WHERE { resource:Q2829041 property:P136 ?e . ?e rdf:type ontology:Q151885 }
Akiko Noma
action filter_type
action find
entity Akiko Noma
relation genre
type concept
['Akiko Noma', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?e WHERE { resource:Akiko_Noma property:genre ?e . ?e rdf:type ontology:concept }
[]
concept
Q131578
SYSTEM
J-pop
Q131578
(Q2829041,P136,c(Q151885))
action filter_type
action find
entity Q2829041
relation P136
type Q151885
[ANSWER] is the genre for Akiko Noma
['Q2829041', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?e WHERE { resource:Q2829041 property:P136 ?e . ?e rdf:type ontology:Q151885 }
J-pop
J-pop is the genre for Akiko Noma
J-pop
action filter_type
action find
entity Akiko Noma
relation genre
type concept
['Akiko Noma', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?e WHERE { resource:Akiko_Noma property:genre ?e . ?e rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2829041
P21
Q290
USER
Which sex does Akiko Noma possess ?
(Q2829041,P21,c(Q290))
action filter_type
action find
entity Q2829041
relation P21
type Q290
['Q2829041', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q2829041 property:P21 ?o . ?o rdf:type ontology:Q290 }
Akiko Noma
action filter_type
action find
entity Akiko Noma
relation gender
type sex
['Akiko Noma', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Akiko_Noma property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q2829041,P21,c(Q290))
action filter_type
action find
entity Q2829041
relation P21
type Q290
Akiko Noma possesses a [ANSWER]
['Q2829041', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q2829041 property:P21 ?o . ?o rdf:type ontology:Q290 }
female
Akiko Noma possesses a female
female
action filter_type
action find
entity Akiko Noma
relation gender
type sex
['Akiko Noma', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Akiko_Noma property:gender ?o . ?o rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q2221906 Q14524493 Q151885
USER
How many concepts are named after around 1 geographic locations or terrains ?
(c(Q151885),P138,c(Q2221906)|c(Q14524493))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q151885
type Q2221906
action find_tuple_counts
relation P138
type Q151885
type Q14524493
value 1
[{'concept': 'Q151885'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q14524493'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { FILTER ( ?o = 1 ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?a WHERE { { ?a property:P138 ?f . ?a rdf:type ontology:Q151885 . ?f rdf:type ontology:Q2221906 } UNION { ?a property:P138 ?f . ?f rdf:type ontology:Q14524493 . ?a rdf:type ontology:Q151885 } } GROUP BY ?a } }
action count
action approx
action union
action find_tuple_counts
relation named after
type concept
type geographic location
action find_tuple_counts
relation named after
type concept
type terrain
value 1
[{'concept': 'concept'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'terrain'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { FILTER ( ?o = 1 ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?a WHERE { { ?a property:named_after ?f . ?a rdf:type ontology:concept . ?f rdf:type ontology:geographic_location } UNION { ?a property:named_after ?f . ?f rdf:type ontology:terrain . ?a rdf:type ontology:concept } } GROUP BY ?a } }
[]
geographic location terrain concept
SYSTEM
5
Q570798 Q127455 Q169320 Q611017 Q260801
(c(Q151885),P138,c(Q2221906)|c(Q14524493))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q151885
type Q2221906
action find_tuple_counts
relation P138
type Q151885
type Q14524493
value 1
[ANSWER]
[{'concept': 'Q151885'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q14524493'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { FILTER ( ?o = 1 ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?a WHERE { { ?a property:P138 ?f . ?a rdf:type ontology:Q151885 . ?f rdf:type ontology:Q2221906 } UNION { ?a property:P138 ?f . ?f rdf:type ontology:Q14524493 . ?a rdf:type ontology:Q151885 } } GROUP BY ?a } }
Michelsberg culture Ordos culture Trialeti culture Lusatian culture Havelland culture
5
action count
action approx
action union
action find_tuple_counts
relation named after
type concept
type geographic location
action find_tuple_counts
relation named after
type concept
type terrain
value 1
[{'concept': 'concept'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'terrain'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { FILTER ( ?o = 1 ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?a WHERE { { ?a property:named_after ?f . ?a rdf:type ontology:concept . ?f rdf:type ontology:geographic_location } UNION { ?a property:named_after ?f . ?f rdf:type ontology:terrain . ?a rdf:type ontology:concept } } GROUP BY ?a } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P636
Q151885 Q12136 Q3249551
USER
Which concepts are the routes of administration of atleast 3 diseases and processes ?
(c(Q12136)|c(Q3249551),P636,c(Q151885))
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 Q3249551
value 3
[[{'concept': 'Q12136'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?x WHERE { { ?a property:P636 ?x . ?x rdf:type ontology:Q151885 . ?a rdf:type ontology:Q12136 } UNION { ?x rdf:type ontology:Q151885 . ?a rdf:type ontology:Q3249551 . ?a property:P636 ?x } } GROUP BY ?x } . FILTER ( ?l >= 3 ) }
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 process
value 3
[[{'concept': 'disease'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?x WHERE { { ?a property:route_of_administration ?x . ?x rdf:type ontology:concept . ?a rdf:type ontology:disease } UNION { ?x rdf:type ontology:concept . ?a rdf:type ontology:process . ?a property:route_of_administration ?x } } GROUP BY ?x } . FILTER ( ?l >= 3 ) }
[]
concept disease process
Q1663054 Q21074571 Q4669896
SYSTEM
ingestion, eye contact, skin absorption
Q21074571 Q4669896 Q1663054 Q10268830
(c(Q12136)|c(Q3249551),P636,c(Q151885))
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 Q3249551
value 3
[ANSWERS] are the routes of administration of atleast 3 diseases and processes
[[{'concept': 'Q12136'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?x WHERE { { ?a property:P636 ?x . ?x rdf:type ontology:Q151885 . ?a rdf:type ontology:Q12136 } UNION { ?x rdf:type ontology:Q151885 . ?a rdf:type ontology:Q3249551 . ?a property:P636 ?x } } GROUP BY ?x } . FILTER ( ?l >= 3 ) }
eye contact skin absorption ingestion inhalation
Ingestion, eye contact and skin absorption are the routes of administration of atleast 3 diseases and processes
ingestion eye contact skin absorption
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 process
value 3
[[{'concept': 'disease'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?x WHERE { { ?a property:route_of_administration ?x . ?x rdf:type ontology:concept . ?a rdf:type ontology:disease } UNION { ?x rdf:type ontology:concept . ?a rdf:type ontology:process . ?a property:route_of_administration ?x } } GROUP BY ?x } . FILTER ( ?l >= 3 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q18556105
P636
Q12136
USER
Do colonic pseudo-obstruction have those concepts as administration route ?
(Q18556105,P636,Q1663054) (Q18556105,P636,Q21074571) (Q18556105,P636,Q4669896)
action is_in
entity prev_answer
action find
entity Q18556105
relation P636
['Q18556105', 'P636', 'Q1663054'] ['Q18556105', 'P636', 'Q21074571'] ['Q18556105', 'P636', 'Q4669896']
ASK WHERE { resource:Q18556105 property:P636 ?x . VALUES ( ?x ) { ( resource:Q21074571 ) ( resource:Q4669896 ) ( resource:Q1663054 ) } }
colonic pseudo-obstruction
action is_in
entity prev_answer
action find
entity colonic pseudo-obstruction
relation route of administration
['colonic pseudo-obstruction', 'route of administration', 'ingestion'] ['colonic pseudo-obstruction', 'route of administration', 'eye contact'] ['colonic pseudo-obstruction', 'route of administration', 'skin absorption']
ASK WHERE { resource:colonic_pseudo-obstruction property:route_of_administration ?x . VALUES ( ?x ) { ( resource:eye_contact ) ( resource:skin_absorption ) ( resource:ingestion ) } }
[]
disease
SYSTEM
NO
(Q18556105,P636,Q1663054) (Q18556105,P636,Q21074571) (Q18556105,P636,Q4669896)
action is_in
entity prev_answer
action find
entity Q18556105
relation P636
[ANSWER]
['Q18556105', 'P636', 'Q1663054'] ['Q18556105', 'P636', 'Q21074571'] ['Q18556105', 'P636', 'Q4669896']
ASK WHERE { resource:Q18556105 property:P636 ?x . VALUES ( ?x ) { ( resource:Q21074571 ) ( resource:Q4669896 ) ( resource:Q1663054 ) } }
No
action is_in
entity prev_answer
action find
entity colonic pseudo-obstruction
relation route of administration
['colonic pseudo-obstruction', 'route of administration', 'ingestion'] ['colonic pseudo-obstruction', 'route of administration', 'eye contact'] ['colonic pseudo-obstruction', 'route of administration', 'skin absorption']
ASK WHERE { resource:colonic_pseudo-obstruction property:route_of_administration ?x . VALUES ( ?x ) { ( resource:eye_contact ) ( resource:skin_absorption ) ( resource:ingestion ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2959538 Q2829041
P19
Q56061
USER
Which administrative territories were Akiko Noma or Charles Gyamfi born in ?
OR((Q2829041,P19,c(Q56061)), (Q2959538,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2829041
relation P19
action find
entity Q2959538
relation P19
type Q56061
{'OR': [['Q2829041', 'P19', {'concept': 'Q56061'}], ['Q2959538', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q2959538 property:P19 ?e } UNION { resource:Q2829041 property:P19 ?e } } . ?e rdf:type ontology:Q56061 }
Charles Gyamfi Akiko Noma
action filter_type
action union
action find
entity Akiko Noma
relation place of birth
action find
entity Charles Gyamfi
relation place of birth
type administrative territorial entity
{'OR': [['Akiko Noma', 'place of birth', {'concept': 'administrative territorial entity'}], ['Charles Gyamfi', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Charles_Gyamfi property:place_of_birth ?e } UNION { resource:Akiko_Noma property:place_of_birth ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q15674 Q3761
SYSTEM
Kagoshima, Accra
Q15674 Q3761
OR((Q2829041,P19,c(Q56061)), (Q2959538,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2829041
relation P19
action find
entity Q2959538
relation P19
type Q56061
Akiko Noma or Charles Gyamfi were born in [ANSWERS]
{'OR': [['Q2829041', 'P19', {'concept': 'Q56061'}], ['Q2959538', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q2959538 property:P19 ?e } UNION { resource:Q2829041 property:P19 ?e } } . ?e rdf:type ontology:Q56061 }
Kagoshima Accra
Akiko Noma or Charles Gyamfi were born in Kagoshima and Accra
Kagoshima Accra
action filter_type
action union
action find
entity Akiko Noma
relation place of birth
action find
entity Charles Gyamfi
relation place of birth
type administrative territorial entity
{'OR': [['Akiko Noma', 'place of birth', {'concept': 'administrative territorial entity'}], ['Charles Gyamfi', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Charles_Gyamfi property:place_of_birth ?e } UNION { resource:Akiko_Noma property:place_of_birth ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q5119
USER
How many administrative territories and capitals are twin towns of that administrative territory ?
(Q3761,P190,c(Q56061)) (Q3761,P190,c(Q5119)) (Q15674,P190,c(Q56061)) (Q15674,P190,c(Q5119)) (Q3761,P190,c(Q56061)) (Q3761,P190,c(Q5119))
['Q3761', 'P190', {'concept': 'Q56061'}] ['Q3761', 'P190', {'concept': 'Q5119'}] ['Q15674', 'P190', {'concept': 'Q56061'}] ['Q15674', 'P190', {'concept': 'Q5119'}] ['Q3761', 'P190', {'concept': 'Q56061'}] ['Q3761', 'P190', {'concept': 'Q5119'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q18929485 property:P190 ?z } UNION { resource:Q18929485 property:P190 ?y } UNION { resource:Q24065601 property:P190 ?z } UNION { resource:Q24065601 property:P190 ?y } UNION { resource:Q18929485 property:P190 ?z } UNION { resource:Q18929485 property:P190 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q8137 }
['Accra', 'sister city', {'concept': 'administrative territorial entity'}] ['Accra', 'sister city', {'concept': 'capital'}] ['Kagoshima', 'sister city', {'concept': 'administrative territorial entity'}] ['Kagoshima', 'sister city', {'concept': 'capital'}] ['Accra', 'sister city', {'concept': 'administrative territorial entity'}] ['Accra', 'sister city', {'concept': 'capital'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Accra property:sister_city ?z } UNION { resource:Accra property:sister_city ?y } UNION { resource:Kagoshima property:sister_city ?z } UNION { resource:Kagoshima property:sister_city ?y } UNION { resource:Accra property:sister_city ?z } UNION { resource:Accra property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:capital }
[]
administrative territorial entity capital
Quantitative|Count|Mult. entity type|Clarification
Q15674
SYSTEM
Did you mean Kagoshima ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q18929485 property:P190 ?z } UNION { resource:Q18929485 property:P190 ?y } UNION { resource:Q24065601 property:P190 ?z } UNION { resource:Q24065601 property:P190 ?y } UNION { resource:Q18929485 property:P190 ?z } UNION { resource:Q18929485 property:P190 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q8137 }
Did you mean Kagoshima ?
Kagoshima
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Accra property:sister_city ?z } UNION { resource:Accra property:sister_city ?y } UNION { resource:Kagoshima property:sister_city ?z } UNION { resource:Kagoshima property:sister_city ?y } UNION { resource:Accra property:sister_city ?z } UNION { resource:Accra property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:capital }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Accra. Could you tell me the answer for that?
(Q3761,P190,c(Q56061)) (Q3761,P190,c(Q5119)) (Q15674,P190,c(Q56061)) (Q15674,P190,c(Q5119)) (Q3761,P190,c(Q56061)) (Q3761,P190,c(Q5119))
Q3761
['Q3761', 'P190', {'concept': 'Q56061'}] ['Q3761', 'P190', {'concept': 'Q5119'}] ['Q15674', 'P190', {'concept': 'Q56061'}] ['Q15674', 'P190', {'concept': 'Q5119'}] ['Q3761', 'P190', {'concept': 'Q56061'}] ['Q3761', 'P190', {'concept': 'Q5119'}]
['Accra', 'sister city', {'concept': 'administrative territorial entity'}] ['Accra', 'sister city', {'concept': 'capital'}] ['Kagoshima', 'sister city', {'concept': 'administrative territorial entity'}] ['Kagoshima', 'sister city', {'concept': 'capital'}] ['Accra', 'sister city', {'concept': 'administrative territorial entity'}] ['Accra', 'sister city', {'concept': 'capital'}]
[]
SYSTEM
3 administrative territories and 1 capitals
Q61 Q1297 Q38453 Q34647
(Q3761,P190,c(Q56061)) (Q3761,P190,c(Q5119)) (Q15674,P190,c(Q56061)) (Q15674,P190,c(Q5119)) (Q3761,P190,c(Q56061)) (Q3761,P190,c(Q5119))
[ANSWER]
['Q3761', 'P190', {'concept': 'Q56061'}] ['Q3761', 'P190', {'concept': 'Q5119'}] ['Q15674', 'P190', {'concept': 'Q56061'}] ['Q15674', 'P190', {'concept': 'Q5119'}] ['Q3761', 'P190', {'concept': 'Q56061'}] ['Q3761', 'P190', {'concept': 'Q5119'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q18929485 property:P190 ?z } UNION { resource:Q18929485 property:P190 ?y } UNION { resource:Q24065601 property:P190 ?z } UNION { resource:Q24065601 property:P190 ?y } UNION { resource:Q18929485 property:P190 ?z } UNION { resource:Q18929485 property:P190 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q8137 }
Washington, D.C. Chicago Columbia Johannesburg
3 administrative territories and 1 capitals
['Accra', 'sister city', {'concept': 'administrative territorial entity'}] ['Accra', 'sister city', {'concept': 'capital'}] ['Kagoshima', 'sister city', {'concept': 'administrative territorial entity'}] ['Kagoshima', 'sister city', {'concept': 'capital'}] ['Accra', 'sister city', {'concept': 'administrative territorial entity'}] ['Accra', 'sister city', {'concept': 'capital'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Accra property:sister_city ?z } UNION { resource:Accra property:sister_city ?y } UNION { resource:Kagoshima property:sister_city ?z } UNION { resource:Kagoshima property:sister_city ?y } UNION { resource:Accra property:sister_city ?z } UNION { resource:Accra property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:capital }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15674
P190
Q515
USER
Which cities are the sister cities of Kagoshima ?
(Q15674,P190,c(Q515))
action filter_type
action find
entity Q15674
relation P190
type Q515
['Q15674', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { resource:Q15674 property:P190 ?x . ?x rdf:type ontology:Q515 }
Kagoshima
action filter_type
action find
entity Kagoshima
relation sister city
type city
['Kagoshima', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { resource:Kagoshima property:sister_city ?x . ?x rdf:type ontology:city }
[]
city
Q174091 Q734416 Q8652
SYSTEM
Changsha, Tsuruoka, Miami
Q174091 Q734416 Q8652
(Q15674,P190,c(Q515))
action filter_type
action find
entity Q15674
relation P190
type Q515
[ANSWERS] are the sister cities of Kagoshima
['Q15674', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { resource:Q15674 property:P190 ?x . ?x rdf:type ontology:Q515 }
Changsha Tsuruoka Miami
Changsha, Tsuruoka and Miami are the sister cities of Kagoshima
Changsha Tsuruoka Miami
action filter_type
action find
entity Kagoshima
relation sister city
type city
['Kagoshima', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { resource:Kagoshima property:sister_city ?x . ?x rdf:type ontology:city }
[]