Simple Question (Direct)
Simple Question
Q5951949
P106
Q12737077
USER
Which occupation has Hwang Kyo-Chung as his/her 's career ?
(Q5951949,P106,c(Q12737077))
action filter_type
action find
entity Q5951949
relation P106
type Q12737077
['Q5951949', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q5951949 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Hwang Kyo-Chung
action filter_type
action find
entity Hwang Kyo-Chung
relation occupation
type occupation
['Hwang Kyo-Chung', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Hwang_Kyo-Chung property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5951949,P106,c(Q12737077))
action filter_type
action find
entity Q5951949
relation P106
type Q12737077
As [ANSWER] has Hwang Kyo-Chung as his/her 's career
['Q5951949', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q5951949 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
association football player
As association football player has Hwang Kyo-Chung as his/her 's career
association football player
action filter_type
action find
entity Hwang Kyo-Chung
relation occupation
type occupation
['Hwang Kyo-Chung', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Hwang_Kyo-Chung property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5951949
P21
Q290
USER
Which sex does that person belong to ?
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q5951949
relation P21
type Q290
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q5951949 property:P21 ?d . ?d rdf:type ontology:Q290 }
Hwang Kyo-Chung
action filter_type
action find
entity Hwang Kyo-Chung
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Hwang_Kyo-Chung property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q5951949
relation P21
type Q290
That person belongs to [ANSWER]
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q5951949 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Hwang Kyo-Chung
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Hwang_Kyo-Chung property:gender ?d . ?d rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of the patron saint of around 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?l ) WHERE { ?b rdf:type ontology:Q502895 . ?j rdf:type ontology:Q12737077 . ?j property:P417 ?b } GROUP BY ?b } . FILTER ( ?l = 2 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?l ) WHERE { ?b rdf:type ontology:common_name . ?j rdf:type ontology:occupation . ?j property:patron_saint ?b } GROUP BY ?b } . FILTER ( ?l = 2 ) }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWERS] are the names of the patron saint of around 2 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?l ) WHERE { ?b rdf:type ontology:Q502895 . ?j rdf:type ontology:Q12737077 . ?j property:P417 ?b } GROUP BY ?b } . FILTER ( ?l = 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
Isidore of Seville, Catherine of Siena and Jerome are the names of the patron saint of around 2 occupations
Isidore of Seville Catherine of Siena Jerome
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?l ) WHERE { ?b rdf:type ontology:common_name . ?j rdf:type ontology:occupation . ?j property:patron_saint ?b } GROUP BY ?b } . FILTER ( ?l = 2 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q166876 Q229190 Q44248
P841
Q186081
USER
Which time intervals are the feast days of those people ?
(Q166876,P841,c(Q186081)) (Q229190,P841,c(Q186081)) (Q44248,P841,c(Q186081))
action filter_type
action find
entity prev_answer
relation P841
type Q186081
['Q166876', 'P841', {'concept': 'Q186081'}] ['Q229190', 'P841', {'concept': 'Q186081'}] ['Q44248', 'P841', {'concept': 'Q186081'}]
SELECT DISTINCT ?k WHERE { ?d property:P841 ?k . ?k rdf:type ontology:Q186081 . VALUES ( ?d ) { ( resource:Q229190 ) ( resource:Q328804 ) ( resource:Q166876 ) } }
Isidore of Seville Catherine of Siena Jerome
action filter_type
action find
entity prev_answer
relation feast day
type time interval
['Isidore of Seville', 'feast day', {'concept': 'time interval'}] ['Catherine of Siena', 'feast day', {'concept': 'time interval'}] ['Jerome', 'feast day', {'concept': 'time interval'}]
SELECT DISTINCT ?k WHERE { ?d property:feast_day ?k . ?k rdf:type ontology:time_interval . VALUES ( ?d ) { ( resource:Catherine_of_Siena ) ( resource:John_the_Evangelist ) ( resource:Isidore_of_Seville ) } }
[]
time interval
Q2508 Q2535 Q2881
SYSTEM
April 4, April 29, September 30
Q2508 Q2535 Q2881
(Q166876,P841,c(Q186081)) (Q229190,P841,c(Q186081)) (Q44248,P841,c(Q186081))
action filter_type
action find
entity prev_answer
relation P841
type Q186081
[ANSWERS] are the feast days of those people
['Q166876', 'P841', {'concept': 'Q186081'}] ['Q229190', 'P841', {'concept': 'Q186081'}] ['Q44248', 'P841', {'concept': 'Q186081'}]
SELECT DISTINCT ?k WHERE { ?d property:P841 ?k . ?k rdf:type ontology:Q186081 . VALUES ( ?d ) { ( resource:Q229190 ) ( resource:Q328804 ) ( resource:Q166876 ) } }
April 4 April 29 September 30
April 4, April 29 and September 30 are the feast days of those people
April 4 April 29 September 30
action filter_type
action find
entity prev_answer
relation feast day
type time interval
['Isidore of Seville', 'feast day', {'concept': 'time interval'}] ['Catherine of Siena', 'feast day', {'concept': 'time interval'}] ['Jerome', 'feast day', {'concept': 'time interval'}]
SELECT DISTINCT ?k WHERE { ?d property:feast_day ?k . ?k rdf:type ontology:time_interval . VALUES ( ?d ) { ( resource:Catherine_of_Siena ) ( resource:John_the_Evangelist ) ( resource:Isidore_of_Seville ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2535
P272
Q838948
USER
Which work of art had that time interval as the production company ?
(c(Q838948),P272,Q2535)
action filter_type
action find_reverse
entity Q2535
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q2535']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q838948 . ?k property:P272 resource:Q2535 }
April 29
action filter_type
action find_reverse
entity April 29
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'April 29']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:work_of_art . ?k property:production_company resource:April_29 }
[]
work of art
Clarification for simple ques.
Q2881
SYSTEM
Did you mean September 30 ?
Q2508 Q2535 Q2881
(c(Q838948),P272,Q2508) (c(Q838948),P272,Q2535) (c(Q838948),P272,Q2881)
[ANSWER]
[{'concept': 'Q838948'}, 'P272', 'Q2508'] [{'concept': 'Q838948'}, 'P272', 'Q2535'] [{'concept': 'Q838948'}, 'P272', 'Q2881']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q838948 . ?k property:P272 resource:Q2535 }
April 4 April 29 September 30
Did you mean September 30 ?
September 30
[{'concept': 'work of art'}, 'production company', 'April 4'] [{'concept': 'work of art'}, 'production company', 'April 29'] [{'concept': 'work of art'}, 'production company', 'September 30']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:work_of_art . ?k property:production_company resource:April_29 }
[]
Simple Question (Coreferenced)
USER
No, I meant April 29. Could you tell me the answer for that?
(c(Q838948),P272,Q2535)
Q2535
[{'concept': 'Q838948'}, 'P272', 'Q2535']
[{'concept': 'work of art'}, 'production company', 'April 29']
[]
Q232081
SYSTEM
İki Genç Kız
Q232081
(c(Q838948),P272,Q2535)
action filter_type
action find_reverse
entity Q2535
relation P272
type Q838948
[ANSWER] had that time interval as the production company
[{'concept': 'Q838948'}, 'P272', 'Q2535']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q838948 . ?k property:P272 resource:Q2535 }
İki Genç Kız
İki Genç Kız had that time interval as the production company
İki Genç Kız
action filter_type
action find_reverse
entity April 29
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'April 29']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:work_of_art . ?k property:production_company resource:April_29 }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q502895 Q6619679 Q3305213
USER
Which people inspired exactly 1 fictional humanoids and paintings ?
(c(Q6619679)|c(Q3305213),P941,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
value 1
[[{'concept': 'Q6619679'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) ?r WHERE { { ?n property:P941 ?r . ?r rdf:type ontology:Q502895 . ?n rdf:type ontology:Q6619679 } UNION { ?n property:P941 ?r . ?r rdf:type ontology:Q502895 . ?n rdf:type ontology:Q3305213 } } GROUP BY ?r } . FILTER ( ?d = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
value 1
[[{'concept': 'fictional humanoid'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) ?r WHERE { { ?n property:inspired_by ?r . ?r rdf:type ontology:common_name . ?n rdf:type ontology:fictional_humanoid } UNION { ?n property:inspired_by ?r . ?r rdf:type ontology:common_name . ?n rdf:type ontology:painting } } GROUP BY ?r } . FILTER ( ?d = 1 ) }
[]
common name fictional humanoid painting
Q22686 Q2907490 Q164823
SYSTEM
Donald Trump, Bo Gritz, Girolamo Savonarola
Q2907490 Q164823 Q22686 Q2409128
(c(Q6619679)|c(Q3305213),P941,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
value 1
[ANSWERS] inspired exactly 1 fictional humanoids and paintings
[[{'concept': 'Q6619679'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) ?r WHERE { { ?n property:P941 ?r . ?r rdf:type ontology:Q502895 . ?n rdf:type ontology:Q6619679 } UNION { ?n property:P941 ?r . ?r rdf:type ontology:Q502895 . ?n rdf:type ontology:Q3305213 } } GROUP BY ?r } . FILTER ( ?d = 1 ) }
Bo Gritz Girolamo Savonarola Donald Trump Dušan Popov
Donald Trump, Bo Gritz and Girolamo Savonarola inspired exactly 1 fictional humanoids and paintings
Donald Trump Bo Gritz Girolamo Savonarola
action equal
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
value 1
[[{'concept': 'fictional humanoid'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) ?r WHERE { { ?n property:inspired_by ?r . ?r rdf:type ontology:common_name . ?n rdf:type ontology:fictional_humanoid } UNION { ?n property:inspired_by ?r . ?r rdf:type ontology:common_name . ?n rdf:type ontology:painting } } GROUP BY ?r } . FILTER ( ?d = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q604538
P1303
Q34379 Q502895
USER
How many musical instruments can lesser number of people perform with than Temple block ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q604538
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?c ) WHERE { ?h rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?h } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:P1303 resource:Q604538 . ?k rdf:type ontology:Q502895 } } . FILTER ( ?c < ?n ) }
Temple block
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Temple block
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?c ) WHERE { ?h rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?h } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:instrument resource:Temple_block . ?k rdf:type ontology:common_name } } . FILTER ( ?c < ?n ) }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q604538
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?c ) WHERE { ?h rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?h } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:P1303 resource:Q604538 . ?k rdf:type ontology:Q502895 } } . FILTER ( ?c < ?n ) }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Temple block
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?c ) WHERE { ?h rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?h } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:instrument resource:Temple_block . ?k rdf:type ontology:common_name } } . FILTER ( ?c < ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q8355
P1303
Q34379 Q502895
USER
And also tell me about violin?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q8355
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P1303 resource:Q8355 . ?c rdf:type ontology:Q502895 } } . FILTER ( ?s < ?r ) }
violin
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity violin
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:instrument resource:violin . ?c rdf:type ontology:common_name } } . FILTER ( ?s < ?r ) }
[]
musical instrument common name
SYSTEM
64
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q8355
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P1303 resource:Q8355 . ?c rdf:type ontology:Q502895 } } . FILTER ( ?s < ?r ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
64
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity violin
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:instrument resource:violin . ?c rdf:type ontology:common_name } } . FILTER ( ?s < ?r ) }
[]