Simple Question (Direct)
Simple Question
Q384991
P937
Q56061
USER
What is the work location of Drago Jančar ?
(Q384991,P937,c(Q56061))
action filter_type
action find
entity Q384991
relation P937
type Q56061
['Q384991', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q384991 property:P937 ?y . ?y rdf:type ontology:Q56061 }
Drago Jančar
action filter_type
action find
entity Drago Jančar
relation work location
type administrative territorial entity
['Drago Jančar', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Drago_Jančar property:work_location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q437
SYSTEM
Ljubljana
Q437
(Q384991,P937,c(Q56061))
action filter_type
action find
entity Q384991
relation P937
type Q56061
The work location of Drago Jančar is in [ANSWER]
['Q384991', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q384991 property:P937 ?y . ?y rdf:type ontology:Q56061 }
Ljubljana
The work location of Drago Jančar is in Ljubljana
Ljubljana
action filter_type
action find
entity Drago Jančar
relation work location
type administrative territorial entity
['Drago Jančar', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Drago_Jančar property:work_location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q384991
P106
Q151885
USER
What is the job of Drago Jančar ?
(Q384991,P106,c(Q151885))
action filter_type
action find
entity Q384991
relation P106
type Q151885
['Q384991', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?s WHERE { resource:Q384991 property:P106 ?s . ?s rdf:type ontology:Q151885 }
Drago Jančar
action filter_type
action find
entity Drago Jančar
relation occupation
type concept
['Drago Jančar', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?s WHERE { resource:Drago_Jančar property:occupation ?s . ?s rdf:type ontology:concept }
[]
concept
Q214917
SYSTEM
playwright
Q214917
(Q384991,P106,c(Q151885))
action filter_type
action find
entity Q384991
relation P106
type Q151885
The job of Drago Jančar is a [ANSWER]
['Q384991', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?s WHERE { resource:Q384991 property:P106 ?s . ?s rdf:type ontology:Q151885 }
playwright
The job of Drago Jančar is a playwright
playwright
action filter_type
action find
entity Drago Jančar
relation occupation
type concept
['Drago Jančar', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?s WHERE { resource:Drago_Jančar property:occupation ?s . ?s rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q437
P108
Q502895
USER
Which person works for Ljubljana ?
(c(Q502895),P108,Q437)
action filter_type
action find_reverse
entity Q437
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q437']
SELECT DISTINCT ?n WHERE { ?n property:P108 resource:Q437 . ?n rdf:type ontology:Q502895 }
Ljubljana
action filter_type
action find_reverse
entity Ljubljana
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Ljubljana']
SELECT DISTINCT ?n WHERE { ?n property:employer resource:Ljubljana . ?n rdf:type ontology:common_name }
[]
common name
Q310106
SYSTEM
Janko Prunk
Q310106
(c(Q502895),P108,Q437)
action filter_type
action find_reverse
entity Q437
relation P108
type Q502895
[ANSWER] works for Ljubljana
[{'concept': 'Q502895'}, 'P108', 'Q437']
SELECT DISTINCT ?n WHERE { ?n property:P108 resource:Q437 . ?n rdf:type ontology:Q502895 }
Janko Prunk
Janko Prunk works for Ljubljana
Janko Prunk
action filter_type
action find_reverse
entity Ljubljana
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Ljubljana']
SELECT DISTINCT ?n WHERE { ?n property:employer resource:Ljubljana . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q437
P119
Q502895
USER
Which person has that administrative territory as resting place ?
(c(Q502895),P119,Q310106)
action filter_type
action find_reverse
entity Q437
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q310106']
SELECT DISTINCT ?j WHERE { ?j property:P119 resource:Q437 . ?j rdf:type ontology:Q502895 }
Ljubljana
action filter_type
action find_reverse
entity Ljubljana
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Janko Prunk']
SELECT DISTINCT ?j WHERE { ?j property:place_of_burial resource:Ljubljana . ?j rdf:type ontology:common_name }
[]
common name
Q12784831
SYSTEM
Anton Leskovec
Q12784831
(c(Q502895),P119,Q310106)
action filter_type
action find_reverse
entity Q437
relation P119
type Q502895
[ANSWER] has that administrative territory as resting place
[{'concept': 'Q502895'}, 'P119', 'Q310106']
SELECT DISTINCT ?j WHERE { ?j property:P119 resource:Q437 . ?j rdf:type ontology:Q502895 }
Anton Leskovec
Anton Leskovec has that administrative territory as resting place
Anton Leskovec
action filter_type
action find_reverse
entity Ljubljana
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Janko Prunk']
SELECT DISTINCT ?j WHERE { ?j property:place_of_burial resource:Ljubljana . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do around 685 people know to play ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 685
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?l = 685 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 685
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?l = 685 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
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 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 685
Around 685 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?l = 685 ) }
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 cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Around 685 people know about davul, harpsichord and Wurlitzer electric piano
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 685
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?l = 685 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5498228 Q310106
P69
Q3918
USER
Which universities were Janko Prunk or Frederick L. Jenks educated ?
OR((Q310106,P69,c(Q3918)), (Q5498228,P69,c(Q3918)))
action filter_type
action union
action find
entity Q310106
relation P69
action find
entity Q5498228
relation P69
type Q3918
{'OR': [['Q310106', 'P69', {'concept': 'Q3918'}], ['Q5498228', 'P69', {'concept': 'Q3918'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q310106 property:P69 ?c } UNION { resource:Q5498228 property:P69 ?c } } . ?c rdf:type ontology:Q3918 }
Frederick L. Jenks Janko Prunk
action filter_type
action union
action find
entity Janko Prunk
relation educated at
action find
entity Frederick L. Jenks
relation educated at
type university
{'OR': [['Janko Prunk', 'educated at', {'concept': 'university'}], ['Frederick L. Jenks', 'educated at', {'concept': 'university'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Janko_Prunk property:educated_at ?c } UNION { resource:Frederick_L._Jenks property:educated_at ?c } } . ?c rdf:type ontology:university }
[]
university
Q1377 Q349055
SYSTEM
University of Ljubljana, Wayne State University
Q1377 Q349055
OR((Q310106,P69,c(Q3918)), (Q5498228,P69,c(Q3918)))
action filter_type
action union
action find
entity Q310106
relation P69
action find
entity Q5498228
relation P69
type Q3918
[ANSWERS] were Janko Prunk or Frederick L. Jenks educated
{'OR': [['Q310106', 'P69', {'concept': 'Q3918'}], ['Q5498228', 'P69', {'concept': 'Q3918'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q310106 property:P69 ?c } UNION { resource:Q5498228 property:P69 ?c } } . ?c rdf:type ontology:Q3918 }
University of Ljubljana Wayne State University
University of Ljubljana and Wayne State University were Janko Prunk or Frederick L. Jenks educated
University of Ljubljana Wayne State University
action filter_type
action union
action find
entity Janko Prunk
relation educated at
action find
entity Frederick L. Jenks
relation educated at
type university
{'OR': [['Janko Prunk', 'educated at', {'concept': 'university'}], ['Frederick L. Jenks', 'educated at', {'concept': 'university'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Janko_Prunk property:educated_at ?c } UNION { resource:Frederick_L._Jenks property:educated_at ?c } } . ?c rdf:type ontology:university }
[]