Simple Question (Direct)
Simple Question
Q11419309
P22
Q502895
USER
Who was the dad of Takako-joō ?
(Q11419309,P22,c(Q502895))
action filter_type
action find
entity Q11419309
relation P22
type Q502895
['Q11419309', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q11419309 property:P22 ?l . ?l rdf:type ontology:Q502895 }
Takako-joō
action filter_type
action find
entity Takako-joō
relation father
type common name
['Takako-joō', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Takako-joō property:father ?l . ?l rdf:type ontology:common_name }
[]
common name
Q11516505
SYSTEM
Arisugawa-no-miya Orihito-shinnō
Q11516505
(Q11419309,P22,c(Q502895))
action filter_type
action find
entity Q11419309
relation P22
type Q502895
The dad of Takako-joō was named [ANSWER]
['Q11419309', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q11419309 property:P22 ?l . ?l rdf:type ontology:Q502895 }
Arisugawa-no-miya Orihito-shinnō
The dad of Takako-joō was named Arisugawa-no-miya Orihito-shinnō
Arisugawa-no-miya Orihito-shinnō
action filter_type
action find
entity Takako-joō
relation father
type common name
['Takako-joō', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Takako-joō property:father ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11419309
P9
Q502895
USER
Who is the sister of Takako-joō ?
(Q11419309,P9,c(Q502895))
action filter_type
action find
entity Q11419309
relation P9
type Q502895
['Q11419309', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q11419309 property:P9 ?z . ?z rdf:type ontology:Q502895 }
Takako-joō
action filter_type
action find
entity Takako-joō
relation sister
type common name
['Takako-joō', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Takako-joō property:sister ?z . ?z rdf:type ontology:common_name }
[]
common name
Q8944971
SYSTEM
Yoshiko-joō
Q8944971
(Q11419309,P9,c(Q502895))
action filter_type
action find
entity Q11419309
relation P9
type Q502895
The sister of Takako-joō is called [ANSWER]
['Q11419309', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q11419309 property:P9 ?z . ?z rdf:type ontology:Q502895 }
Yoshiko-joō
The sister of Takako-joō is called Yoshiko-joō
Yoshiko-joō
action filter_type
action find
entity Takako-joō
relation sister
type common name
['Takako-joō', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Takako-joō property:sister ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8944971
P40
Q502895
USER
Who are the children of that one ?
(Q8944971,P40,c(Q502895))
action filter_type
action find
entity Q8944971
relation P40
type Q502895
['Q8944971', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q8944971 property:P40 ?y . ?y rdf:type ontology:Q502895 }
Yoshiko-joō
action filter_type
action find
entity Yoshiko-joō
relation child
type common name
['Yoshiko-joō', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Yoshiko-joō property:child ?y . ?y rdf:type ontology:common_name }
[]
common name
Q287657 Q6998470
SYSTEM
Tokugawa Yoshinobu, Tokugawa Yoshiatsu
Q287657 Q6998470
(Q8944971,P40,c(Q502895))
action filter_type
action find
entity Q8944971
relation P40
type Q502895
The children of that one are Prince [ANSWERS]
['Q8944971', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q8944971 property:P40 ?y . ?y rdf:type ontology:Q502895 }
Tokugawa Yoshinobu Tokugawa Yoshiatsu
The children of that one are Prince Tokugawa Yoshinobu and Tokugawa Yoshiatsu
Tokugawa Yoshinobu Tokugawa Yoshiatsu
action filter_type
action find
entity Yoshiko-joō
relation child
type common name
['Yoshiko-joō', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Yoshiko-joō property:child ?y . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1444
P1303
Q34379 Q502895
USER
Which musical instruments are played by more number of people than organ ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1444
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?k ) WHERE { ?q rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 . ?o property:P1303 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:Q34379 . resource:Q1444 property:P1303 ?n } } . FILTER ( ?k > ?d ) }
organ
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity organ
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?k ) WHERE { ?q rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name . ?o property:instrument ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:musical_instrument . resource:organ property:instrument ?n } } . FILTER ( ?k > ?d ) }
[]
musical instrument common name
Q5994 Q8355
SYSTEM
piano, violin
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1444
relation P1303
type Q34379
[ANSWERS] are played by more number of people than organ
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?k ) WHERE { ?q rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 . ?o property:P1303 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:Q34379 . resource:Q1444 property:P1303 ?n } } . FILTER ( ?k > ?d ) }
piano violin
Piano and violin are played by more number of people than organ
piano violin
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity organ
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?k ) WHERE { ?q rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name . ?o property:instrument ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:musical_instrument . resource:organ property:instrument ?n } } . FILTER ( ?k > ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q744831
P1303
Q34379 Q502895
USER
And what about Mridangam?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q744831
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ontology:Q34379 . resource:Q744831 property:P1303 ?z } } . FILTER ( ?v > ?i ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?e } }
Mridangam
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Mridangam
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ontology:musical_instrument . resource:Mridangam property:instrument ?z } } . FILTER ( ?v > ?i ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?e } }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q744831
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ontology:Q34379 . resource:Q744831 property:P1303 ?z } } . FILTER ( ?v > ?i ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?e } }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Mridangam
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ontology:musical_instrument . resource:Mridangam property:instrument ?z } } . FILTER ( ?v > ?i ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?e } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q287657
P7
Q502895
USER
Who have Tokugawa Yoshinobu as their sibling ?
(c(Q502895),P7,Q287657)
action filter_type
action find_reverse
entity Q287657
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q287657']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P7 resource:Q287657 }
Tokugawa Yoshinobu
action filter_type
action find_reverse
entity Tokugawa Yoshinobu
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Tokugawa Yoshinobu']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:brother resource:Tokugawa_Yoshinobu }
[]
common name
Q3530485 Q6788070 Q930282
SYSTEM
Tokugawa Akitake, Matsudaira Tadakazu, Matsudaira Nobunori
Q6997367 Q6997477 Q930282 Q6638511 Q6997690 Q6997436 Q6997990 Q6997412 Q6788070 Q6998470 Q6997808 Q6637910 Q3530485
(c(Q502895),P7,Q287657)
action filter_type
action find_reverse
entity Q287657
relation P7
type Q502895
[ANSWERS] have Tokugawa Yoshinobu as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q287657']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P7 resource:Q287657 }
Ikeda Mochimasa Tokugawa Sadako Matsudaira Nobunori Matsudaira Yoriyuki Matsudaira Takeakira Kitsuregawa Tsunauji Matsudaira Naoyoshi Ikeda Yoshinori Matsudaira Tadakazu Tokugawa Yoshiatsu Tsuchiya Shigenao Matsudaira Akikuni Tokugawa Akitake
Tokugawa Akitake, Matsudaira Tadakazu and Matsudaira Nobunori have Tokugawa Yoshinobu as their sibling
Tokugawa Akitake Matsudaira Tadakazu Matsudaira Nobunori
action filter_type
action find_reverse
entity Tokugawa Yoshinobu
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Tokugawa Yoshinobu']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:brother resource:Tokugawa_Yoshinobu }
[]
Clarification
Simple Question|Single Entity|Indirect
Q930282
P21
Q290
USER
What is the sex of that person ?
(Q930282,P21,c(Q290))
action filter_type
action find
entity Q930282
relation P21
type Q290
['Q930282', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q930282 property:P21 ?e . ?e rdf:type ontology:Q290 }
Matsudaira Nobunori
action filter_type
action find
entity Matsudaira Nobunori
relation gender
type sex
['Matsudaira Nobunori', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Matsudaira_Nobunori property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q930282
SYSTEM
Did you mean Matsudaira Nobunori ?
Q3530485 Q6788070 Q930282
(Q3530485,P21,c(Q290)) (Q6788070,P21,c(Q290)) (Q930282,P21,c(Q290))
[ANSWER]
['Q3530485', 'P21', {'concept': 'Q290'}] ['Q6788070', 'P21', {'concept': 'Q290'}] ['Q930282', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q930282 property:P21 ?e . ?e rdf:type ontology:Q290 }
Tokugawa Akitake Matsudaira Tadakazu Matsudaira Nobunori
Did you mean Matsudaira Nobunori ?
Matsudaira Nobunori
['Tokugawa Akitake', 'gender', {'concept': 'sex'}] ['Matsudaira Tadakazu', 'gender', {'concept': 'sex'}] ['Matsudaira Nobunori', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Matsudaira_Nobunori property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
Yes
(Q930282,P21,c(Q290))
['Q930282', 'P21', {'concept': 'Q290'}]
['Matsudaira Nobunori', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q930282,P21,c(Q290))
action filter_type
action find
entity Q930282
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q930282', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q930282 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Matsudaira Nobunori
relation gender
type sex
['Matsudaira Nobunori', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Matsudaira_Nobunori property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P138
Q11173
USER
Which chemical compound is named after that sex ?
(c(Q11173),P138,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
[{'concept': 'Q11173'}, 'P138', 'Q6581097']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q11173 . ?c property:P138 resource:Q6581097 }
male
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
[{'concept': 'chemical compound'}, 'named after', 'male']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:chemical_compound . ?c property:named_after resource:male }
[]
chemical compound
Q19861203
SYSTEM
postite
Q19861203
(c(Q11173),P138,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
Person [ANSWER] is named after that sex
[{'concept': 'Q11173'}, 'P138', 'Q6581097']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q11173 . ?c property:P138 resource:Q6581097 }
postite
Person postite is named after that sex
postite
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
[{'concept': 'chemical compound'}, 'named after', 'male']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:chemical_compound . ?c property:named_after resource:male }
[]