Simple Question (Direct)
Simple Question
Q505055
P106
Q12737077
USER
What do Jeffrey M. Friedman do for a living ?
(Q505055,P106,c(Q12737077))
action filter_type
action find
entity Q505055
relation P106
type Q12737077
['Q505055', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q505055 property:P106 ?k }
Jeffrey M. Friedman
action filter_type
action find
entity Jeffrey M. Friedman
relation occupation
type occupation
['Jeffrey M. Friedman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Jeffrey_M._Friedman property:occupation ?k }
[]
occupation
Q3126128 Q1622272
SYSTEM
geneticist, university teacher
Q3126128 Q1622272
(Q505055,P106,c(Q12737077))
action filter_type
action find
entity Q505055
relation P106
type Q12737077
Jeffrey M. Friedman do for a living [ANSWERS]
['Q505055', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q505055 property:P106 ?k }
geneticist university teacher
Jeffrey M. Friedman do for a living geneticist and university teacher
geneticist university teacher
action filter_type
action find
entity Jeffrey M. Friedman
relation occupation
type occupation
['Jeffrey M. Friedman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Jeffrey_M._Friedman property:occupation ?k }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3126128
P425
Q7991
USER
Which natural science has that one as the associated field of occupation ?
(Q3126128,P425,c(Q7991))
action filter_type
action find
entity Q3126128
relation P425
type Q7991
['Q3126128', 'P425', {'concept': 'Q7991'}]
SELECT DISTINCT ?i WHERE { resource:Q3126128 property:P425 ?i . ?i rdf:type ontology:Q7991 }
geneticist
action filter_type
action find
entity geneticist
relation field of this occupation
type natural science
['geneticist', 'field of this occupation', {'concept': 'natural science'}]
SELECT DISTINCT ?i WHERE { resource:geneticist property:field_of_this_occupation ?i . ?i rdf:type ontology:natural_science }
[]
natural science
Clarification for simple ques.
Q1622272
SYSTEM
Did you mean university teacher ?
Q3126128 Q1622272
(Q3126128,P425,c(Q7991)) (Q1622272,P425,c(Q7991))
[ANSWER]
['Q3126128', 'P425', {'concept': 'Q7991'}] ['Q1622272', 'P425', {'concept': 'Q7991'}]
SELECT DISTINCT ?i WHERE { resource:Q3126128 property:P425 ?i . ?i rdf:type ontology:Q7991 }
geneticist university teacher
Did you mean university teacher ?
university teacher
['geneticist', 'field of this occupation', {'concept': 'natural science'}] ['university teacher', 'field of this occupation', {'concept': 'natural science'}]
SELECT DISTINCT ?i WHERE { resource:geneticist property:field_of_this_occupation ?i . ?i rdf:type ontology:natural_science }
[]
Simple Question (Coreferenced)
USER
No, I meant geneticist. Could you tell me the answer for that?
(Q3126128,P425,c(Q7991))
Q3126128
['Q3126128', 'P425', {'concept': 'Q7991'}]
['geneticist', 'field of this occupation', {'concept': 'natural science'}]
[]
Q7162
SYSTEM
genetics
Q7162
(Q3126128,P425,c(Q7991))
action filter_type
action find
entity Q3126128
relation P425
type Q7991
[ANSWER] has that one as the associated field of occupation
['Q3126128', 'P425', {'concept': 'Q7991'}]
SELECT DISTINCT ?i WHERE { resource:Q3126128 property:P425 ?i . ?i rdf:type ontology:Q7991 }
genetics
Genetics has that one as the associated field of occupation
genetics
action filter_type
action find
entity geneticist
relation field of this occupation
type natural science
['geneticist', 'field of this occupation', {'concept': 'natural science'}]
SELECT DISTINCT ?i WHERE { resource:geneticist property:field_of_this_occupation ?i . ?i rdf:type ontology:natural_science }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the names of person who are the patron saints of exactly 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P417 ?s . ?s rdf:type ontology:Q502895 . ?o rdf:type ontology:Q12737077 } GROUP BY ?s } . FILTER ( ?k = 1 ) }
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:patron_saint ?s . ?s rdf:type ontology:common_name . ?o rdf:type ontology:occupation } GROUP BY ?s } . FILTER ( ?k = 1 ) }
[]
common name occupation
SYSTEM
38
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P417 ?s . ?s rdf:type ontology:Q502895 . ?o rdf:type ontology:Q12737077 } GROUP BY ?s } . FILTER ( ?k = 1 ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
38
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:patron_saint ?s . ?s rdf:type ontology:common_name . ?o rdf:type ontology:occupation } GROUP BY ?s } . FILTER ( ?k = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of approximately 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 ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:P417 ?q . ?n rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } GROUP BY ?q } . FILTER ( ?u = 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 ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:patron_saint ?q . ?n rdf:type ontology:occupation . ?q rdf:type ontology:common_name } GROUP BY ?q } . FILTER ( ?u = 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 patron saint of approximately 2 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:P417 ?q . ?n rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } GROUP BY ?q } . FILTER ( ?u = 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 patron saint of approximately 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 ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:patron_saint ?q . ?n rdf:type ontology:occupation . ?q rdf:type ontology:common_name } GROUP BY ?q } . FILTER ( ?u = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do around 1438 people know to play ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1438
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?a = 1438 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1438
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?a = 1438 ) }
[]
musical instrument common name
Q81982 Q80284 Q46185
SYSTEM
harpsichord, viola, bass guitar
Q80284 Q46185 Q80019 Q81982 Q206987 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1438
Around 1438 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?a = 1438 ) }
viola bass guitar double bass harpsichord vibraphone trumpet cello organ drum kit electronic keyboard
Around 1438 people know about harpsichord, viola and bass guitar
harpsichord viola bass guitar
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1438
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?a = 1438 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1303
Q12737077 Q15619164
USER
How many occupations and abstract beings can play that musical instrument ?
(c(Q12737077),P1303,Q46185) (c(Q15619164),P1303,Q46185) (c(Q12737077),P1303,Q81982) (c(Q15619164),P1303,Q81982) (c(Q12737077),P1303,Q80284) (c(Q15619164),P1303,Q80284) (c(Q12737077),P1303,Q46185) (c(Q15619164),P1303,Q46185)
[{'concept': 'Q12737077'}, 'P1303', 'Q46185'] [{'concept': 'Q15619164'}, 'P1303', 'Q46185'] [{'concept': 'Q12737077'}, 'P1303', 'Q81982'] [{'concept': 'Q15619164'}, 'P1303', 'Q81982'] [{'concept': 'Q12737077'}, 'P1303', 'Q80284'] [{'concept': 'Q15619164'}, 'P1303', 'Q80284'] [{'concept': 'Q12737077'}, 'P1303', 'Q46185'] [{'concept': 'Q15619164'}, 'P1303', 'Q46185']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1303 resource:Q46185 } UNION { ?y property:P1303 resource:Q46185 } UNION { ?z property:P1303 resource:Q81982 } UNION { ?y property:P1303 resource:Q81982 } UNION { ?z property:P1303 resource:Q80284 } UNION { ?y property:P1303 resource:Q80284 } UNION { ?z property:P1303 resource:Q46185 } UNION { ?y property:P1303 resource:Q46185 } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q15619164 }
[{'concept': 'occupation'}, 'instrument', 'bass guitar'] [{'concept': 'abstract being'}, 'instrument', 'bass guitar'] [{'concept': 'occupation'}, 'instrument', 'harpsichord'] [{'concept': 'abstract being'}, 'instrument', 'harpsichord'] [{'concept': 'occupation'}, 'instrument', 'viola'] [{'concept': 'abstract being'}, 'instrument', 'viola'] [{'concept': 'occupation'}, 'instrument', 'bass guitar'] [{'concept': 'abstract being'}, 'instrument', 'bass guitar']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:instrument resource:bass_guitar } UNION { ?y property:instrument resource:bass_guitar } UNION { ?z property:instrument resource:harpsichord } UNION { ?y property:instrument resource:harpsichord } UNION { ?z property:instrument resource:viola } UNION { ?y property:instrument resource:viola } UNION { ?z property:instrument resource:bass_guitar } UNION { ?y property:instrument resource:bass_guitar } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:abstract_being }
[]
occupation abstract being
Quantitative|Count|Mult. entity type|Clarification
Q46185
SYSTEM
Did you mean bass guitar ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1303 resource:Q46185 } UNION { ?y property:P1303 resource:Q46185 } UNION { ?z property:P1303 resource:Q81982 } UNION { ?y property:P1303 resource:Q81982 } UNION { ?z property:P1303 resource:Q80284 } UNION { ?y property:P1303 resource:Q80284 } UNION { ?z property:P1303 resource:Q46185 } UNION { ?y property:P1303 resource:Q46185 } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q15619164 }
Did you mean bass guitar ?
bass guitar
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:instrument resource:bass_guitar } UNION { ?y property:instrument resource:bass_guitar } UNION { ?z property:instrument resource:harpsichord } UNION { ?y property:instrument resource:harpsichord } UNION { ?z property:instrument resource:viola } UNION { ?y property:instrument resource:viola } UNION { ?z property:instrument resource:bass_guitar } UNION { ?y property:instrument resource:bass_guitar } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:abstract_being }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q12737077),P1303,Q46185) (c(Q15619164),P1303,Q46185) (c(Q12737077),P1303,Q81982) (c(Q15619164),P1303,Q81982) (c(Q12737077),P1303,Q80284) (c(Q15619164),P1303,Q80284) (c(Q12737077),P1303,Q46185) (c(Q15619164),P1303,Q46185)
[{'concept': 'Q12737077'}, 'P1303', 'Q46185'] [{'concept': 'Q15619164'}, 'P1303', 'Q46185'] [{'concept': 'Q12737077'}, 'P1303', 'Q81982'] [{'concept': 'Q15619164'}, 'P1303', 'Q81982'] [{'concept': 'Q12737077'}, 'P1303', 'Q80284'] [{'concept': 'Q15619164'}, 'P1303', 'Q80284'] [{'concept': 'Q12737077'}, 'P1303', 'Q46185'] [{'concept': 'Q15619164'}, 'P1303', 'Q46185']
[{'concept': 'occupation'}, 'instrument', 'bass guitar'] [{'concept': 'abstract being'}, 'instrument', 'bass guitar'] [{'concept': 'occupation'}, 'instrument', 'harpsichord'] [{'concept': 'abstract being'}, 'instrument', 'harpsichord'] [{'concept': 'occupation'}, 'instrument', 'viola'] [{'concept': 'abstract being'}, 'instrument', 'viola'] [{'concept': 'occupation'}, 'instrument', 'bass guitar'] [{'concept': 'abstract being'}, 'instrument', 'bass guitar']
[]
SYSTEM
1 occupations and 1 abstract beings
Q21504978 Q3858633
(c(Q12737077),P1303,Q46185) (c(Q15619164),P1303,Q46185) (c(Q12737077),P1303,Q81982) (c(Q15619164),P1303,Q81982) (c(Q12737077),P1303,Q80284) (c(Q15619164),P1303,Q80284) (c(Q12737077),P1303,Q46185) (c(Q15619164),P1303,Q46185)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1303', 'Q46185'] [{'concept': 'Q15619164'}, 'P1303', 'Q46185'] [{'concept': 'Q12737077'}, 'P1303', 'Q81982'] [{'concept': 'Q15619164'}, 'P1303', 'Q81982'] [{'concept': 'Q12737077'}, 'P1303', 'Q80284'] [{'concept': 'Q15619164'}, 'P1303', 'Q80284'] [{'concept': 'Q12737077'}, 'P1303', 'Q46185'] [{'concept': 'Q15619164'}, 'P1303', 'Q46185']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1303 resource:Q46185 } UNION { ?y property:P1303 resource:Q46185 } UNION { ?z property:P1303 resource:Q81982 } UNION { ?y property:P1303 resource:Q81982 } UNION { ?z property:P1303 resource:Q80284 } UNION { ?y property:P1303 resource:Q80284 } UNION { ?z property:P1303 resource:Q46185 } UNION { ?y property:P1303 resource:Q46185 } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q15619164 }
bass-guitarist Mio Akiyama
1 occupations and 1 abstract beings
[{'concept': 'occupation'}, 'instrument', 'bass guitar'] [{'concept': 'abstract being'}, 'instrument', 'bass guitar'] [{'concept': 'occupation'}, 'instrument', 'harpsichord'] [{'concept': 'abstract being'}, 'instrument', 'harpsichord'] [{'concept': 'occupation'}, 'instrument', 'viola'] [{'concept': 'abstract being'}, 'instrument', 'viola'] [{'concept': 'occupation'}, 'instrument', 'bass guitar'] [{'concept': 'abstract being'}, 'instrument', 'bass guitar']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:instrument resource:bass_guitar } UNION { ?y property:instrument resource:bass_guitar } UNION { ?z property:instrument resource:harpsichord } UNION { ?y property:instrument resource:harpsichord } UNION { ?z property:instrument resource:viola } UNION { ?y property:instrument resource:viola } UNION { ?z property:instrument resource:bass_guitar } UNION { ?y property:instrument resource:bass_guitar } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:abstract_being }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q81982
P870
Q188451
USER
Which music genre employs harpsichord as musical instrument ?
(c(Q188451),P870,Q81982)
action filter_type
action find_reverse
entity Q81982
relation P870
type Q188451
[{'concept': 'Q188451'}, 'P870', 'Q81982']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q188451 . ?n property:P870 resource:Q81982 }
harpsichord
action filter_type
action find_reverse
entity harpsichord
relation instrumentation
type music genre
[{'concept': 'music genre'}, 'instrumentation', 'harpsichord']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:music_genre . ?n property:instrumentation resource:harpsichord }
[]
music genre
Q17015133
SYSTEM
Recorder sonata in A minor
Q17015133
(c(Q188451),P870,Q81982)
action filter_type
action find_reverse
entity Q81982
relation P870
type Q188451
The [ANSWER] employs harpsichord as musical instrument
[{'concept': 'Q188451'}, 'P870', 'Q81982']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q188451 . ?n property:P870 resource:Q81982 }
Recorder sonata in A minor
The Recorder sonata in A minor employs harpsichord as musical instrument
Recorder sonata in A minor
action filter_type
action find_reverse
entity harpsichord
relation instrumentation
type music genre
[{'concept': 'music genre'}, 'instrumentation', 'harpsichord']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:music_genre . ?n property:instrumentation resource:harpsichord }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q81982
P425
Q12737077
USER
Which occupation does that musical instrument belong to ?
(c(Q12737077),P425,Q17015133)
action filter_type
action find
entity Q81982
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q17015133']
SELECT DISTINCT ?d WHERE { resource:Q81982 property:P425 ?d . ?d rdf:type ontology:Q12737077 }
harpsichord
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'Recorder sonata in A minor']
SELECT DISTINCT ?d WHERE { resource:harpsichord property:field_of_this_occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q5371902
SYSTEM
harpsichordist
Q5371902
(c(Q12737077),P425,Q17015133)
action filter_type
action find
entity Q81982
relation P425
type Q12737077
That musical instrument belongs to the [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q17015133']
SELECT DISTINCT ?d WHERE { resource:Q81982 property:P425 ?d . ?d rdf:type ontology:Q12737077 }
harpsichordist
That musical instrument belongs to the harpsichordist
harpsichordist
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'Recorder sonata in A minor']
SELECT DISTINCT ?d WHERE { resource:harpsichord property:field_of_this_occupation ?d . ?d rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q386724 Q838948
USER
How many occupations were the main subjects of atmost 65 works and works of art 's work ?
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 65
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:P921 ?s . ?s rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q386724 } UNION { ?i property:P921 ?s . ?s rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q838948 } } GROUP BY ?s } . FILTER ( ?o <= 65 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 65
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:main_subject ?s . ?s rdf:type ontology:occupation . ?i rdf:type ontology:work } UNION { ?i property:main_subject ?s . ?s rdf:type ontology:occupation . ?i rdf:type ontology:work_of_art } } GROUP BY ?s } . FILTER ( ?o <= 65 ) }
[]
occupation work work of art
SYSTEM
100
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q16746569 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 65
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:P921 ?s . ?s rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q386724 } UNION { ?i property:P921 ?s . ?s rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q838948 } } GROUP BY ?s } . FILTER ( ?o <= 65 ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny high school student caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
100
action count
action atmost
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 65
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:main_subject ?s . ?s rdf:type ontology:occupation . ?i rdf:type ontology:work } UNION { ?i property:main_subject ?s . ?s rdf:type ontology:occupation . ?i rdf:type ontology:work_of_art } } GROUP BY ?s } . FILTER ( ?o <= 65 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q166876
P39
Q12737077
USER
What was the position held by Isidore of Seville ?
(Q166876,P39,c(Q12737077))
action filter_type
action find
entity Q166876
relation P39
type Q12737077
['Q166876', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q166876 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Isidore of Seville
action filter_type
action find
entity Isidore of Seville
relation position held
type occupation
['Isidore of Seville', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Isidore_of_Seville property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q49476
SYSTEM
archbishop
Q49476
(Q166876,P39,c(Q12737077))
action filter_type
action find
entity Q166876
relation P39
type Q12737077
The position held by Isidore of Seville was the [ANSWER]
['Q166876', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q166876 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
archbishop
The position held by Isidore of Seville was the archbishop
archbishop
action filter_type
action find
entity Isidore of Seville
relation position held
type occupation
['Isidore of Seville', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Isidore_of_Seville property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q49476
P97
Q502895
USER
Which people holds the royal title that occupation ?
(c(Q502895),P97,Q49476)
action filter_type
action find_reverse
entity Q49476
relation P97
type Q502895
[{'concept': 'Q502895'}, 'P97', 'Q49476']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P97 resource:Q49476 }
archbishop
action filter_type
action find_reverse
entity archbishop
relation noble title
type common name
[{'concept': 'common name'}, 'noble title', 'archbishop']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:noble_title resource:archbishop }
[]
common name
Q637520 Q6140047
SYSTEM
Joseph-Eugène Limoges, James Morrison
Q637520 Q6140047
(c(Q502895),P97,Q49476)
action filter_type
action find_reverse
entity Q49476
relation P97
type Q502895
[ANSWERS] hold the royal title that occupation
[{'concept': 'Q502895'}, 'P97', 'Q49476']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P97 resource:Q49476 }
Joseph-Eugène Limoges James Morrison
Joseph-Eugène Limoges and James Morrison hold the royal title that occupation
Joseph-Eugène Limoges James Morrison
action filter_type
action find_reverse
entity archbishop
relation noble title
type common name
[{'concept': 'common name'}, 'noble title', 'archbishop']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:noble_title resource:archbishop }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q6619679
USER
Which fictional humanoids did min number of people dub for ?
(c(Q6619679),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q6619679
type Q502895
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?q ) WHERE { ?c rdf:type ontology:Q6619679 . ?j rdf:type ontology:Q502895 . ?c property:P725 ?j } GROUP BY ?c } } . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?t ) WHERE { ?h property:P725 ?o . ?h rdf:type ontology:Q6619679 . ?o rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?t = ?m ) }
action argmin
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?q ) WHERE { ?c rdf:type ontology:fictional_humanoid . ?j rdf:type ontology:common_name . ?c property:voice_actor ?j } GROUP BY ?c } } . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?t ) WHERE { ?h property:voice_actor ?o . ?h rdf:type ontology:fictional_humanoid . ?o rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?t = ?m ) }
[]
common name fictional humanoid
Q1623086 Q1205263 Q3149148
SYSTEM
Hector Barbossa, Eli Vance, Imoen
Q1623086 Q1205263 Q4992177 Q24010814 Q819585 Q1079617 Q4006757 Q15614636 Q1056953 Q250221 Q3149148 Q757015 Q15620419 Q13471616 Q12879 Q1154920
(c(Q6619679),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q6619679
type Q502895
Min number of people dubbed as [ANSWERS]
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?q ) WHERE { ?c rdf:type ontology:Q6619679 . ?j rdf:type ontology:Q502895 . ?c property:P725 ?j } GROUP BY ?c } } . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?t ) WHERE { ?h property:P725 ?o . ?h rdf:type ontology:Q6619679 . ?o rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?t = ?m ) }
Hector Barbossa Eli Vance Cave Johnson Deckard Cain Jaina Proudmoore Wallace Breen Utena Tenjo Anna (Disney) Minsc Alyx Vance Imoen Sailor Moon Elsa Mr. Bean Toph Beifong Father Grigori
Min number of people dubbed as Hector Barbossa, Eli Vance and Imoen
Hector Barbossa Eli Vance Imoen
action argmin
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?q ) WHERE { ?c rdf:type ontology:fictional_humanoid . ?j rdf:type ontology:common_name . ?c property:voice_actor ?j } GROUP BY ?c } } . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?t ) WHERE { ?h property:voice_actor ?o . ?h rdf:type ontology:fictional_humanoid . ?o rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?t = ?m ) }
[]