Simple Question (Direct)
Simple Question
Q515970
P106
Q12737077
USER
Which occupations are the professions of András Bodnár ?
(Q515970,P106,c(Q12737077))
action filter_type
action find
entity Q515970
relation P106
type Q12737077
['Q515970', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q515970 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
András Bodnár
action filter_type
action find
entity András Bodnár
relation occupation
type occupation
['András Bodnár', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:András_Bodnár property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q39631 Q17524364
SYSTEM
physician, water polo player
Q39631 Q17524364
(Q515970,P106,c(Q12737077))
action filter_type
action find
entity Q515970
relation P106
type Q12737077
The professions of András Bodnár are a [ANSWERS]
['Q515970', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q515970 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
physician water polo player
The professions of András Bodnár are a physician and water polo player
physician water polo player
action filter_type
action find
entity András Bodnár
relation occupation
type occupation
['András Bodnár', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:András_Bodnár property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q515970
P19
Q13220204
USER
Which administrative country subdivision was András Bodnár born at ?
(Q515970,P19,c(Q13220204))
action filter_type
action find
entity Q515970
relation P19
type Q13220204
['Q515970', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?d WHERE { resource:Q515970 property:P19 ?d . ?d rdf:type ontology:Q13220204 }
András Bodnár
action filter_type
action find
entity András Bodnár
relation place of birth
type second-level administrative country subdivision
['András Bodnár', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?d WHERE { resource:András_Bodnár property:place_of_birth ?d . ?d rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q156711
SYSTEM
Uzhhorod
Q156711
(Q515970,P19,c(Q13220204))
action filter_type
action find
entity Q515970
relation P19
type Q13220204
Which administrative country subdivision was András Bodnár born at
['Q515970', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?d WHERE { resource:Q515970 property:P19 ?d . ?d rdf:type ontology:Q13220204 }
Uzhhorod
Which administrative country subdivision was András Bodnár born at
Uzhhorod
action filter_type
action find
entity András Bodnár
relation place of birth
type second-level administrative country subdivision
['András Bodnár', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?d WHERE { resource:András_Bodnár property:place_of_birth ?d . ?d rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q156711
P1376
Q1048835
USER
Which political territory has that administrative country subdivision as its county seat ?
(Q156711,P1376,c(Q1048835))
action filter_type
action find
entity Q156711
relation P1376
type Q1048835
['Q156711', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q156711 property:P1376 ?s . ?s rdf:type ontology:Q1048835 }
Uzhhorod
action filter_type
action find
entity Uzhhorod
relation capital of
type political territorial entity
['Uzhhorod', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Uzhhorod property:capital_of ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q170213
SYSTEM
Zakarpattia Oblast
Q170213
(Q156711,P1376,c(Q1048835))
action filter_type
action find
entity Q156711
relation P1376
type Q1048835
[ANSWER] has that administrative country subdivision as its county seat
['Q156711', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q156711 property:P1376 ?s . ?s rdf:type ontology:Q1048835 }
Zakarpattia Oblast
Zakarpattia Oblast has that administrative country subdivision as its county seat
Zakarpattia Oblast
action filter_type
action find
entity Uzhhorod
relation capital of
type political territorial entity
['Uzhhorod', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Uzhhorod property:capital_of ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2807
Q1048835
USER
And what about Madrid?
(Q2807,P1376,c(Q1048835))
action filter_type
action find
entity Q2807
relation P1376
type Q1048835
['Q2807', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q2807 property:P1376 ?r . ?r rdf:type ontology:Q1048835 }
Madrid
action filter_type
action find
entity Madrid
relation capital of
type political territorial entity
['Madrid', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Madrid property:capital_of ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q5756
SYSTEM
Community of Madrid
Q5756
(Q2807,P1376,c(Q1048835))
action filter_type
action find
entity Q2807
relation P1376
type Q1048835
[ANSWER]
['Q2807', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q2807 property:P1376 ?r . ?r rdf:type ontology:Q1048835 }
Community of Madrid
Community of Madrid
action filter_type
action find
entity Madrid
relation capital of
type political territorial entity
['Madrid', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Madrid property:capital_of ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q61 Q2807
P937
Q502895
USER
Which people works at Madrid and Washington, D.C. ?
AND((c(Q502895),P937,Q2807), (c(Q502895),P937,Q61))
action filter_type
action intersection
action find_reverse
entity Q2807
relation P937
action find_reverse
entity Q61
relation P937
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P937', 'Q2807'], [{'concept': 'Q502895'}, 'P937', 'Q61']]}
SELECT DISTINCT ?e WHERE { ?e property:P937 resource:Q2807 . ?e property:P937 resource:Q61 . ?e rdf:type ontology:Q502895 }
Washington, D.C. Madrid
action filter_type
action intersection
action find_reverse
entity Madrid
relation work location
action find_reverse
entity Washington, D.C.
relation work location
type common name
{'AND': [[{'concept': 'common name'}, 'work location', 'Madrid'], [{'concept': 'common name'}, 'work location', 'Washington, D.C.']]}
SELECT DISTINCT ?e WHERE { ?e property:work_location resource:Madrid . ?e property:work_location resource:Washington,_D.C. . ?e rdf:type ontology:common_name }
[]
common name
Q214880
SYSTEM
Karl Heinrich Knappstein
Q214880
AND((c(Q502895),P937,Q2807), (c(Q502895),P937,Q61))
action filter_type
action intersection
action find_reverse
entity Q2807
relation P937
action find_reverse
entity Q61
relation P937
type Q502895
[ANSWER] works at Madrid and Washington, D.C.
{'AND': [[{'concept': 'Q502895'}, 'P937', 'Q2807'], [{'concept': 'Q502895'}, 'P937', 'Q61']]}
SELECT DISTINCT ?e WHERE { ?e property:P937 resource:Q2807 . ?e property:P937 resource:Q61 . ?e rdf:type ontology:Q502895 }
Karl Heinrich Knappstein
Karl Heinrich Knappstein works at Madrid and Washington, D.C.
Karl Heinrich Knappstein
action filter_type
action intersection
action find_reverse
entity Madrid
relation work location
action find_reverse
entity Washington, D.C.
relation work location
type common name
{'AND': [[{'concept': 'common name'}, 'work location', 'Madrid'], [{'concept': 'common name'}, 'work location', 'Washington, D.C.']]}
SELECT DISTINCT ?e WHERE { ?e property:work_location resource:Madrid . ?e property:work_location resource:Washington,_D.C. . ?e rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q178933
P1303
Q34379 Q502895
USER
Which musical instruments are played by more number of people than Hardanger fiddle ?
(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 Q178933
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Q178933 property:P1303 ?x . ?x rdf:type ontology:Q34379 } } . FILTER ( ?i > ?k ) }
Hardanger fiddle
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Hardanger fiddle
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Hardanger_fiddle property:instrument ?x . ?x rdf:type ontology:musical_instrument } } . FILTER ( ?i > ?k ) }
[]
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 Q178933
relation P1303
type Q34379
[ANSWERS] are played by more number of people than Hardanger fiddle
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Q178933 property:P1303 ?x . ?x rdf:type ontology:Q34379 } } . FILTER ( ?i > ?k ) }
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 and ondes Martenot are played by more number of people than Hardanger fiddle
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 Hardanger fiddle
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Hardanger_fiddle property:instrument ?x . ?x rdf:type ontology:musical_instrument } } . FILTER ( ?i > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q120585
P1303
Q34379 Q502895
USER
And how about Tsuzumi?
(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 Q120585
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?t ) WHERE { ?y property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Q120585 property:P1303 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?t > ?v ) }
Tsuzumi
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Tsuzumi
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?t ) WHERE { ?y property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Tsuzumi property:instrument ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?t > ?v ) }
[]
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 Q120585
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?t ) WHERE { ?y property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Q120585 property:P1303 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?t > ?v ) }
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 Tsuzumi
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?t ) WHERE { ?y property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Tsuzumi property:instrument ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?t > ?v ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q862501
P425
Q12737077
USER
Which occupation does that musical instrument belong to ?
(c(Q12737077),P425,Q862501)
action filter_type
action find_reverse
entity Q862501
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q862501']
SELECT DISTINCT ?d WHERE { ?d property:P425 resource:Q862501 . ?d rdf:type ontology:Q12737077 }
ondes Martenot
action filter_type
action find_reverse
entity ondes Martenot
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'ondes Martenot']
SELECT DISTINCT ?d WHERE { ?d property:field_of_this_occupation resource:ondes_Martenot . ?d rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q5994
SYSTEM
Did you mean piano ?
Q5994 Q81982 Q862501
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q81982) (c(Q12737077),P425,Q862501)
[ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q81982'] [{'concept': 'Q12737077'}, 'P425', 'Q862501']
SELECT DISTINCT ?d WHERE { ?d property:P425 resource:Q862501 . ?d rdf:type ontology:Q12737077 }
piano harpsichord ondes Martenot
Did you mean piano ?
piano
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'harpsichord'] [{'concept': 'occupation'}, 'field of this occupation', 'ondes Martenot']
SELECT DISTINCT ?d WHERE { ?d property:field_of_this_occupation resource:ondes_Martenot . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant ondes Martenot. Could you tell me the answer for that?
(c(Q12737077),P425,Q862501)
Q862501
[{'concept': 'Q12737077'}, 'P425', 'Q862501']
[{'concept': 'occupation'}, 'field of this occupation', 'ondes Martenot']
[]
Q20198734
SYSTEM
ondist
Q20198734
(c(Q12737077),P425,Q862501)
action filter_type
action find_reverse
entity Q862501
relation P425
type Q12737077
That musical instrument belongs to the [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q862501']
SELECT DISTINCT ?d WHERE { ?d property:P425 resource:Q862501 . ?d rdf:type ontology:Q12737077 }
ondist
That musical instrument belongs to the ondist
ondist
action filter_type
action find_reverse
entity ondes Martenot
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'ondes Martenot']
SELECT DISTINCT ?d WHERE { ?d property:field_of_this_occupation resource:ondes_Martenot . ?d rdf:type ontology:occupation }
[]