Simple Question (Direct)
Simple Question
Q1539483
P39
Q12737077
USER
What were the positions for which Gottfried Travelmann were appointed ?
(Q1539483,P39,c(Q12737077))
action filter_type
action find
entity Q1539483
relation P39
type Q12737077
['Q1539483', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1539483 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Gottfried Travelmann
action filter_type
action find
entity Gottfried Travelmann
relation position held
type occupation
['Gottfried Travelmann', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Gottfried_Travelmann property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q1640530 Q30185 Q708492
SYSTEM
Mayor of Lübeck, mayor, councillor
Q1640530 Q30185 Q708492
(Q1539483,P39,c(Q12737077))
action filter_type
action find
entity Q1539483
relation P39
type Q12737077
Hamburg [ANSWERS]
['Q1539483', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1539483 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Mayor of Lübeck mayor councillor
Hamburg Mayor of Lübeck, mayor and councillor
Mayor of Lübeck mayor councillor
action filter_type
action find
entity Gottfried Travelmann
relation position held
type occupation
['Gottfried Travelmann', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Gottfried_Travelmann property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1539483
P21
Q290
USER
Which sex does that person belong to ?
(Q1640530,P21,c(Q290)) (Q30185,P21,c(Q290)) (Q708492,P21,c(Q290))
action filter_type
action find
entity Q1539483
relation P21
type Q290
['Q1640530', 'P21', {'concept': 'Q290'}] ['Q30185', 'P21', {'concept': 'Q290'}] ['Q708492', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q1539483 property:P21 ?s . ?s rdf:type ontology:Q290 }
Gottfried Travelmann
action filter_type
action find
entity Gottfried Travelmann
relation gender
type sex
['Mayor of Lübeck', 'gender', {'concept': 'sex'}] ['mayor', 'gender', {'concept': 'sex'}] ['councillor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Gottfried_Travelmann property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1640530,P21,c(Q290)) (Q30185,P21,c(Q290)) (Q708492,P21,c(Q290))
action filter_type
action find
entity Q1539483
relation P21
type Q290
That person belongs to [ANSWER]
['Q1640530', 'P21', {'concept': 'Q290'}] ['Q30185', 'P21', {'concept': 'Q290'}] ['Q708492', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q1539483 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Gottfried Travelmann
relation gender
type sex
['Mayor of Lübeck', 'gender', {'concept': 'sex'}] ['mayor', 'gender', {'concept': 'sex'}] ['councillor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Gottfried_Travelmann property:gender ?s . ?s rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q7562048 Q1539483
P21
Q290
USER
And also Sonny Homer
AND((Q1539483,P21,c(Q290)), (Q7562048,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q1539483
relation P21
action find
entity Q7562048
relation P21
type Q290
{'AND': [['Q1539483', 'P21', {'concept': 'Q290'}], ['Q7562048', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?r WHERE { resource:Q1539483 property:P21 ?r . resource:Q7562048 property:P21 ?r . ?r rdf:type ontology:Q290 }
Sonny Homer Gottfried Travelmann
action filter_type
action intersection
action find
entity Gottfried Travelmann
relation gender
action find
entity Sonny Homer
relation gender
type sex
{'AND': [['Gottfried Travelmann', 'gender', {'concept': 'sex'}], ['Sonny Homer', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?r WHERE { resource:Gottfried_Travelmann property:gender ?r . resource:Sonny_Homer property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q1539483,P21,c(Q290)), (Q7562048,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q1539483
relation P21
action find
entity Q7562048
relation P21
type Q290
[ANSWER]
{'AND': [['Q1539483', 'P21', {'concept': 'Q290'}], ['Q7562048', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?r WHERE { resource:Q1539483 property:P21 ?r . resource:Q7562048 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
male
action filter_type
action intersection
action find
entity Gottfried Travelmann
relation gender
action find
entity Sonny Homer
relation gender
type sex
{'AND': [['Gottfried Travelmann', 'gender', {'concept': 'sex'}], ['Sonny Homer', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?r WHERE { resource:Gottfried_Travelmann property:gender ?r . resource:Sonny_Homer property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7562048
P735
Q82799
USER
Which name is Sonny Homer known by ?
(Q6581097,P735,c(Q82799))
action filter_type
action find
entity Q7562048
relation P735
type Q82799
['Q6581097', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q7562048 property:P735 ?j . ?j rdf:type ontology:Q82799 }
Sonny Homer
action filter_type
action find
entity Sonny Homer
relation given name
type name
['male', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Sonny_Homer property:given_name ?j . ?j rdf:type ontology:name }
[]
name
Q10673707
SYSTEM
Sonny
Q10673707
(Q6581097,P735,c(Q82799))
action filter_type
action find
entity Q7562048
relation P735
type Q82799
[ANSWER] Homer is known to [ANSWER]
['Q6581097', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q7562048 property:P735 ?j . ?j rdf:type ontology:Q82799 }
Sonny
Sonny Homer is known to Sonny
Sonny
action filter_type
action find
entity Sonny Homer
relation given name
type name
['male', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Sonny_Homer property:given_name ?j . ?j rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P735
Q502895 Q6619679
USER
How many people or fictional humanoids have that name as first name ?
(c(Q502895),P735,Q10673707) (c(Q6619679),P735,Q10673707) (c(Q502895),P735,Q10673707) (c(Q6619679),P735,Q10673707)
action count
action union
action filter_type
action find_reverse
entity Q10673707
relation P735
type Q502895
action filter_type
action find_reverse
entity Q10673707
relation P735
type Q6619679
[{'concept': 'Q502895'}, 'P735', 'Q10673707'] [{'concept': 'Q6619679'}, 'P735', 'Q10673707'] [{'concept': 'Q502895'}, 'P735', 'Q10673707'] [{'concept': 'Q6619679'}, 'P735', 'Q10673707']
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { ?l property:P735 resource:Q10673707 . ?l rdf:type ontology:Q502895 } UNION { ?l property:P735 resource:Q10673707 . ?l rdf:type ontology:Q6619679 } }
action count
action union
action filter_type
action find_reverse
entity Sonny
relation given name
type common name
action filter_type
action find_reverse
entity Sonny
relation given name
type fictional humanoid
[{'concept': 'common name'}, 'given name', 'Sonny'] [{'concept': 'fictional humanoid'}, 'given name', 'Sonny'] [{'concept': 'common name'}, 'given name', 'Sonny'] [{'concept': 'fictional humanoid'}, 'given name', 'Sonny']
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { ?l property:given_name resource:Sonny . ?l rdf:type ontology:common_name } UNION { ?l property:given_name resource:Sonny . ?l rdf:type ontology:fictional_humanoid } }
[]
common name fictional humanoid
SYSTEM
227
Q7562076 Q7562077 Q7562074 Q1310401 Q7562073 Q3905227 Q14184394 Q3136781 Q2302307 Q1516057 Q7562079 Q15943700 Q21066713 Q2302263 Q2302261 Q2302300 Q5889265 Q3964858 Q18615724 Q713035 Q7562071 Q575889 Q7561995 Q7561996 Q7561997 Q7561998 Q7561999 Q1361909 Q6381451 Q19061022 Q19788293 Q2302277 Q2709858 Q7562078 Q1486717 Q16298742 Q18586334 Q6759183 Q3964849 Q3964848 Q3490638 Q16014104 Q3490634 Q3490635 Q1260845 Q3964847 Q7562050 Q16237830 Q299208 Q15526700 Q21532079 Q2384946 Q10557517 Q7562094 Q7562095 Q7562096 Q7562097 Q7562090 Q7562092 Q7562093 Q7562098 Q733062 Q1436974 Q2302283 Q7562069 Q7562068 Q7562043 Q1366979 Q7562061 Q7562060 Q7562063 Q7562062 Q7562065 Q7562064 Q7562067 Q7562066 Q540395 Q7562121 Q7562122 Q7562123 Q7562124 Q7562125 Q2302219 Q7562127 Q7562128 Q7562129 Q1363705 Q362371 Q7562087 Q7562086 Q7562084 Q2481789 Q7562082 Q7562081 Q7562080 Q2465962 Q15437033 Q7562089 Q2302253 Q3490650 Q3490651 Q16266726 Q15098543 Q17148736 Q7562018 Q14950696 Q7562083 Q21604872 Q7562017 Q7562010 Q7562011 Q7562012 Q7562013 Q7562132 Q7562131 Q3964851 Q1383680 Q20739016 Q7562134 Q2302228 Q17479065 Q7562053 Q491089 Q18636020 Q27460031 Q16229770 Q3490641 Q3490640 Q5902101 Q6045154 Q7562009 Q19004 Q7562005 Q7562002 Q7562001 Q2302235 Q1337866 Q7562104 Q7562105 Q7562102 Q7562103 Q7562100 Q7562101 Q7562008 Q939908 Q2302274 Q3490670 Q313684 Q2302292 Q16019394 Q16979906 Q18685476 Q353828 Q7562032 Q7562033 Q7562030 Q7562036 Q7562037 Q7562034 Q7562035 Q7562038 Q7562039 Q16229253 Q485163 Q454692 Q7562051 Q525362 Q7562054 Q7562055 Q7562057 Q7562058 Q781878 Q6254659 Q1122827 Q2302242 Q81590 Q3490668 Q2593867 Q2302249 Q7562022 Q913664 Q181601 Q16232499 Q16013793 Q7562025 Q7562024 Q966037 Q7562020 Q19662837 Q12336437 Q12336438 Q12336439 Q2302304 Q7562029 Q7562028 Q179150 Q2302312 Q7562042 Q7562041 Q7562040 Q7562047 Q7562046 Q7562045 Q7562044 Q2302318 Q7562048 Q1570419 Q1753500 Q17421101 Q19814894 Q17505036 Q2302257 Q7562015 Q7562130 Q2302317 Q12055350 Q2302237 Q7562049 Q358286 Q502311 Q3490644 Q7493958 Q7562119 Q7562118 Q12336440 Q20047096 Q18685599
(c(Q502895),P735,Q10673707) (c(Q6619679),P735,Q10673707) (c(Q502895),P735,Q10673707) (c(Q6619679),P735,Q10673707)
action count
action union
action filter_type
action find_reverse
entity Q10673707
relation P735
type Q502895
action filter_type
action find_reverse
entity Q10673707
relation P735
type Q6619679
[ANSWER]
[{'concept': 'Q502895'}, 'P735', 'Q10673707'] [{'concept': 'Q6619679'}, 'P735', 'Q10673707'] [{'concept': 'Q502895'}, 'P735', 'Q10673707'] [{'concept': 'Q6619679'}, 'P735', 'Q10673707']
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { ?l property:P735 resource:Q10673707 . ?l rdf:type ontology:Q502895 } UNION { ?l property:P735 resource:Q10673707 . ?l rdf:type ontology:Q6619679 } }
Sonny Nevaquaya Sonny Nickle Sonny Myers Sonny Gandee Sonny Muslim Sonny Kertoidjojo Sonny Gray Sonny Boy Jaro Sonny Russo Sonny Hennig Sonny Onoo Sonny Bosz Sonny Mallhi Sonny Greenwich Sonny Dunham Sonny Phillips Sonny Johnson Sonny Strait Sonny Russell Sonny Landreth Sonny Moorman Sonny Corleone Sonny Askew Sonny Ates Sonny Ayon Sonny Barrios Sonny Bishop Sonny Sharrock Sonny Mignacca Sonny Seidel Sonny Wood Sonny Johansson Sonny Cohn Sonny Ochs Sonny Jurgensen Sonny Heinilä Sonny Lindner Margaret Berger Sidney Hertzberg Sonny Dove Sonny Falconetti Sonny Knight Sonny Brogan Sonny Bupp Sonny Greer Sonny Caldinez Sonny Horne Sonny Kiriakis Sonny Rollins Sonny Borrelli Sonny Fredie Pedersen Sonny Shroyer Sonny Karlsson Sonny Seiler Sonny Senerchia Sonny Shackelford Sonny Shepherd Sonny Ruberto Sonny Sanjay Vadgama Sonny Schmidt Sonny Siaki Sonny Fisher Sonny Brown Gillespie V. Montgomery Sonny Moloney Sonny Melendrez Sonny Geraci Sonny Lester Sonny Leitch Sonny Knowles Sonny Lim Sonny Liew Sonny Lubick Sonny Long Sonny Mehta Sonny Maher Sonny Curtis Sonny Throckmorton Sonny Truitt Sonny Tuigamala Sonny Turner Sonny Vaccaro Sonny Banks Sonny Vincent Sonny Wade Sonny Walters Sonny Thompson Sonny Burgess Sonny Randle Sonny Ramaswamy Sonny Pike Sonny Bill Williams Sonny Parker Sonny Osborne Sonny Okosun Sonny Sandoval Sonny Baskin Sonny Roberts Sonny Dallas Sonny Ramadhin Sonny Parker Sonny Rupaire Sonny Brewer Sonny Wharton Sonny Chillingworth Sonny Gibbs Sonny Parsons Sonny Liles Sonny Charles Sonny Bradley Sonny Bradshaw Sonny Bravo Sonny Brown Sonny Whitelaw Sonny Whakarau Sonny Mayo Sonny Silooy Sonny Douglas Sonny Zhou Sonny Burns Sonny Cullen Sonny Jackson Sonny Fortune Sonny King Sonny Sanders Sonny Milano Sonny Grosso Sonny Gallant Sonny Karlsson Sonny Peterson Sonny Boy West Skrillex Sonny Boswell Sonny Bloch Sonny Black Sonny Costanzo Sonny White Sonny Smith Sonny Stevens Sonny Skinner Sonny Smith Sonny Siebert Sonny Sixkiller Sonny Boy Nelson Sonny Clark Sonny James Sonny Tufts Sonny Liston Sonny Parker Sonny Gindi Sonny Esslemont Sonny Collins Sonny Criss Sonny Drane Sonny Dykes Sonny Dixon Sonny Fai Sonny Feehan Sonny Easley Sonny Everett Sonny Flame Sonny Flood Sonny Karlsson Sonny Burke Sonny Boy Williamson II Sonny Hutchins Sonny Perdue Sonny J Sonny Jackson Sonny Kay Sonny King Sonny Terry Sonny Åberg Sonny Guadarrama Sonny Clay Sonny Kittel Sonny Umpad Sonny Parker Sonny Grey Sonny Corinthos Sonny Callahan Sonny Weems Sonny Waaldijk Sonny Avery Sonny Cumbie Sonny Cox Sonny Colbrelli Sonny Collantes Sonny King Sonny Benneweis Sonny Lahey Sonny Rønne Pedersen Sonny Red Sonny Dixon Sonny Digital Sonny Bono Sonny Rhodes Sonny Fox Sonny Fox Sonny Forriest Sonny Hoffman Sonny Hine Sonny Hill Sonny Grandelius Sonny West Sonny Homer Sonny Emory Sonny Simmons Sonny Trinidad Sonny Karnofsky Sonny Assu Sonny Igoe Sonny Cabatu Sonny Werblin Sonny Til Sonni Cooper Sonny Berman Sonny Hool Sonny Payne Sonny Stitt Sonny Malone Sonny Condell Sonny Tanabe Sonny T. Sonny Tronborg Sonny Miller Sonny Dalesandro
227
action count
action union
action filter_type
action find_reverse
entity Sonny
relation given name
type common name
action filter_type
action find_reverse
entity Sonny
relation given name
type fictional humanoid
[{'concept': 'common name'}, 'given name', 'Sonny'] [{'concept': 'fictional humanoid'}, 'given name', 'Sonny'] [{'concept': 'common name'}, 'given name', 'Sonny'] [{'concept': 'fictional humanoid'}, 'given name', 'Sonny']
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { ?l property:given_name resource:Sonny . ?l rdf:type ontology:common_name } UNION { ?l property:given_name resource:Sonny . ?l rdf:type ontology:fictional_humanoid } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30185
P1313
Q15617994
USER
Which administrative territories have mayor as title of head of government ?
(c(Q15617994),P1313,Q30185)
action filter_type
action find_reverse
entity Q30185
relation P1313
type Q15617994
[{'concept': 'Q15617994'}, 'P1313', 'Q30185']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . ?c property:P1313 resource:Q30185 }
mayor
action filter_type
action find_reverse
entity mayor
relation office held by head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', 'mayor']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:office_held_by_head_of_government resource:mayor }
[]
designation for an administrative territorial entity
Q4105 Q548396 Q490453
SYSTEM
Meerbusch, Pommerby, Eckernförde
Q747074 Q4105 Q559153 Q548396 Q635574 Q490453 Q526741 Q54765 Q15284 Q51484
(c(Q15617994),P1313,Q30185)
action filter_type
action find_reverse
entity Q30185
relation P1313
type Q15617994
[ANSWERS] have mayor as title of head of government
[{'concept': 'Q15617994'}, 'P1313', 'Q30185']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . ?c property:P1313 resource:Q30185 }
comune of Italy Meerbusch Süderbrarup Pommerby Högsdorf Eckernförde Kronsgaard San Rafael municipality Dupax del Sur
Meerbusch, Pommerby and Eckernförde have mayor as title of head of government
Meerbusch Pommerby Eckernförde
action filter_type
action find_reverse
entity mayor
relation office held by head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', 'mayor']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:office_held_by_head_of_government resource:mayor }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4105 Q548396 Q490453
P19
Q502895
USER
Who have location of birth at Meerbusch, Pommerby and Eckernförde ?
(c(Q502895),P19,Q4105) (c(Q502895),P19,Q548396) (c(Q502895),P19,Q490453)
action union
action filter_type
action find_reverse
entity Q4105
relation P19
type Q502895
action filter_type
action find_reverse
entity Q548396
relation P19
type Q502895
action filter_type
action find_reverse
entity Q490453
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q4105'] [{'concept': 'Q502895'}, 'P19', 'Q548396'] [{'concept': 'Q502895'}, 'P19', 'Q490453']
SELECT DISTINCT ?c WHERE { { ?c property:P19 resource:Q4105 . ?c rdf:type ontology:Q502895 } UNION { ?c property:P19 resource:Q548396 . ?c rdf:type ontology:Q502895 } }
Meerbusch Pommerby Eckernförde
action union
action filter_type
action find_reverse
entity Meerbusch
relation place of birth
type common name
action filter_type
action find_reverse
entity Pommerby
relation place of birth
type common name
action filter_type
action find_reverse
entity Eckernförde
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Meerbusch'] [{'concept': 'common name'}, 'place of birth', 'Pommerby'] [{'concept': 'common name'}, 'place of birth', 'Eckernförde']
SELECT DISTINCT ?c WHERE { { ?c property:place_of_birth resource:Meerbusch . ?c rdf:type ontology:common_name } UNION { ?c property:place_of_birth resource:Pommerby . ?c rdf:type ontology:common_name } }
[]
common name
Q61956 Q2645483 Q78019
SYSTEM
Lorenz von Stein, Alfred Menzel, Karl Wilhelm Valentiner
Q72961 Q2288178 Q766210 Q19958722 Q1167386 Q1237013 Q1579866 Q2645483 Q20638999 Q1869212 Q2442530 Q1463144 Q1870103 Q25675585 Q1336930 Q96727 Q104033 Q289006 Q1290277 Q2262721 Q1629040 Q5503789 Q61956 Q84937 Q1793899 Q102588 Q78019 Q15834079
(c(Q502895),P19,Q4105) (c(Q502895),P19,Q548396) (c(Q502895),P19,Q490453)
action union
action filter_type
action find_reverse
entity Q4105
relation P19
type Q502895
action filter_type
action find_reverse
entity Q548396
relation P19
type Q502895
action filter_type
action find_reverse
entity Q490453
relation P19
type Q502895
[ANSWERS] have location of birth at Meerbusch, Pommerby and Eckernförde
[{'concept': 'Q502895'}, 'P19', 'Q4105'] [{'concept': 'Q502895'}, 'P19', 'Q548396'] [{'concept': 'Q502895'}, 'P19', 'Q490453']
SELECT DISTINCT ?c WHERE { { ?c property:P19 resource:Q4105 . ?c rdf:type ontology:Q502895 } UNION { ?c property:P19 resource:Q548396 . ?c rdf:type ontology:Q502895 } }
Wolke Hegenbarth Simone Wiegele Elena Hauer Matthias Renger Heiko Kleibrink Domenic Bartels Georg Asmussen Alfred Menzel Finnia Wunram Lone Fischer Tony Franck Friedrich Wilhelm Otte Laurentius Ludenius Sven Zellner Emil Timm Friedrich Rathgen Christian Otte Ruth Halbsguth Eduard Völkel Sebastian Fuchs Horst-Dieter Kolletschke Friedrich Ferdinand, Hereditary Prince of Schleswig-Holstein Lorenz von Stein Walter von Bülow-Bothkamp Kurt Nantke Karl Samwer Karl Wilhelm Valentiner Markus Hansen
Lorenz von Stein, Alfred Menzel and Karl Wilhelm Valentiner have location of birth at Meerbusch, Pommerby and Eckernförde
Lorenz von Stein Alfred Menzel Karl Wilhelm Valentiner
action union
action filter_type
action find_reverse
entity Meerbusch
relation place of birth
type common name
action filter_type
action find_reverse
entity Pommerby
relation place of birth
type common name
action filter_type
action find_reverse
entity Eckernförde
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Meerbusch'] [{'concept': 'common name'}, 'place of birth', 'Pommerby'] [{'concept': 'common name'}, 'place of birth', 'Eckernförde']
SELECT DISTINCT ?c WHERE { { ?c property:place_of_birth resource:Meerbusch . ?c rdf:type ontology:common_name } UNION { ?c property:place_of_birth resource:Pommerby . ?c rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q78019
P22
Q502895
USER
Which people have that one as dad ?
(c(Q502895),P22,Q78019)
action filter_type
action find_reverse
entity Q78019
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q78019']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P22 resource:Q78019 }
Karl Wilhelm Valentiner
action filter_type
action find_reverse
entity Karl Wilhelm Valentiner
relation father
type common name
[{'concept': 'common name'}, 'father', 'Karl Wilhelm Valentiner']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:father resource:Karl_Wilhelm_Valentiner }
[]
common name
Clarification for simple ques.
Q61956
SYSTEM
Did you mean Lorenz von Stein ?
Q61956 Q2645483 Q78019
(c(Q502895),P22,Q61956) (c(Q502895),P22,Q2645483) (c(Q502895),P22,Q78019)
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q61956'] [{'concept': 'Q502895'}, 'P22', 'Q2645483'] [{'concept': 'Q502895'}, 'P22', 'Q78019']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P22 resource:Q78019 }
Lorenz von Stein Alfred Menzel Karl Wilhelm Valentiner
Did you mean Lorenz von Stein ?
Lorenz von Stein
[{'concept': 'common name'}, 'father', 'Lorenz von Stein'] [{'concept': 'common name'}, 'father', 'Alfred Menzel'] [{'concept': 'common name'}, 'father', 'Karl Wilhelm Valentiner']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:father resource:Karl_Wilhelm_Valentiner }
[]
Simple Question (Coreferenced)
USER
No, I meant Karl Wilhelm Valentiner. Could you tell me the answer for that?
(c(Q502895),P22,Q78019)
Q78019
[{'concept': 'Q502895'}, 'P22', 'Q78019']
[{'concept': 'common name'}, 'father', 'Karl Wilhelm Valentiner']
[]
Q1280924 Q8002333
SYSTEM
Siegfried Valentiner, Wilhelm Valentiner
Q1280924 Q8002333
(c(Q502895),P22,Q78019)
action filter_type
action find_reverse
entity Q78019
relation P22
type Q502895
[ANSWERS] have that one as dad
[{'concept': 'Q502895'}, 'P22', 'Q78019']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P22 resource:Q78019 }
Siegfried Valentiner Wilhelm Valentiner
Siegfried Valentiner and Wilhelm Valentiner have that one as dad
Siegfried Valentiner Wilhelm Valentiner
action filter_type
action find_reverse
entity Karl Wilhelm Valentiner
relation father
type common name
[{'concept': 'common name'}, 'father', 'Karl Wilhelm Valentiner']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:father resource:Karl_Wilhelm_Valentiner }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1280924 Q8002333
P21
Q290
USER
Which sexes do Siegfried Valentiner and Wilhelm Valentiner have ?
(Q1280924,P21,c(Q290)) (Q8002333,P21,c(Q290))
action union
action filter_type
action find
entity Q1280924
relation P21
type Q290
action filter_type
action find
entity Q8002333
relation P21
type Q290
['Q1280924', 'P21', {'concept': 'Q290'}] ['Q8002333', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { VALUES ( ?e ) { ( resource:Q1280924 ) ( resource:Q8002333 ) } . ?e property:P21 ?a }
Siegfried Valentiner Wilhelm Valentiner
action union
action filter_type
action find
entity Siegfried Valentiner
relation gender
type sex
action filter_type
action find
entity Wilhelm Valentiner
relation gender
type sex
['Siegfried Valentiner', 'gender', {'concept': 'sex'}] ['Wilhelm Valentiner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { VALUES ( ?e ) { ( resource:Siegfried_Valentiner ) ( resource:Wilhelm_Valentiner ) } . ?e property:gender ?a }
[]
sex
Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097
(Q1280924,P21,c(Q290)) (Q8002333,P21,c(Q290))
action union
action filter_type
action find
entity Q1280924
relation P21
type Q290
action filter_type
action find
entity Q8002333
relation P21
type Q290
Siegfried Valentiner and Wilhelm Valentiner have been [ANSWER] and [ANSWER]
['Q1280924', 'P21', {'concept': 'Q290'}] ['Q8002333', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { VALUES ( ?e ) { ( resource:Q1280924 ) ( resource:Q8002333 ) } . ?e property:P21 ?a }
male male
Siegfried Valentiner and Wilhelm Valentiner have been male and male
male male
action union
action filter_type
action find
entity Siegfried Valentiner
relation gender
type sex
action filter_type
action find
entity Wilhelm Valentiner
relation gender
type sex
['Siegfried Valentiner', 'gender', {'concept': 'sex'}] ['Wilhelm Valentiner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { VALUES ( ?e ) { ( resource:Siegfried_Valentiner ) ( resource:Wilhelm_Valentiner ) } . ?e property:gender ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1280924
P40
Q502895
USER
Who have Siegfried Valentiner as an offspring ?
(c(Q502895),P40,Q1280924)
action filter_type
action find_reverse
entity Q1280924
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1280924']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P40 resource:Q1280924 }
Siegfried Valentiner
action filter_type
action find_reverse
entity Siegfried Valentiner
relation child
type common name
[{'concept': 'common name'}, 'child', 'Siegfried Valentiner']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:child resource:Siegfried_Valentiner }
[]
common name
Q78019 Q23001287
SYSTEM
Karl Wilhelm Valentiner, Elisabeth Valentiner
Q78019 Q23001287
(c(Q502895),P40,Q1280924)
action filter_type
action find_reverse
entity Q1280924
relation P40
type Q502895
[ANSWERS] have Siegfried Valentiner as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q1280924']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P40 resource:Q1280924 }
Karl Wilhelm Valentiner Elisabeth Valentiner
Karl Wilhelm Valentiner and Elisabeth Valentiner have Siegfried Valentiner as an offspring
Karl Wilhelm Valentiner Elisabeth Valentiner
action filter_type
action find_reverse
entity Siegfried Valentiner
relation child
type common name
[{'concept': 'common name'}, 'child', 'Siegfried Valentiner']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:child resource:Siegfried_Valentiner }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1280924
P7
Q502895
USER
Who has Siegfried Valentiner as their sibling ?
(c(Q502895),P7,Q1280924)
action filter_type
action find
entity Q1280924
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q1280924']
SELECT DISTINCT ?j WHERE { resource:Q1280924 property:P7 ?j . ?j rdf:type ontology:Q502895 }
Siegfried Valentiner
action filter_type
action find
entity Siegfried Valentiner
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Siegfried Valentiner']
SELECT DISTINCT ?j WHERE { resource:Siegfried_Valentiner property:brother ?j . ?j rdf:type ontology:common_name }
[]
common name
Q8002333
SYSTEM
Wilhelm Valentiner
Q8002333
(c(Q502895),P7,Q1280924)
action filter_type
action find
entity Q1280924
relation P7
type Q502895
[ANSWER] has Siegfried Valentiner as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q1280924']
SELECT DISTINCT ?j WHERE { resource:Q1280924 property:P7 ?j . ?j rdf:type ontology:Q502895 }
Wilhelm Valentiner
Wilhelm Valentiner has Siegfried Valentiner as their sibling
Wilhelm Valentiner
action filter_type
action find
entity Siegfried Valentiner
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Siegfried Valentiner']
SELECT DISTINCT ?j WHERE { resource:Siegfried_Valentiner property:brother ?j . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q8002333 Q183
P27
Q1048835
USER
Does Wilhelm Valentiner belong to Germany ?
(Q8002333,P27,Q183)
action is_in
entity Q183
action find
entity Q8002333
relation P27
['Q8002333', 'P27', 'Q183']
ASK WHERE { resource:Q8002333 property:P27 resource:Q183 }
Wilhelm Valentiner Germany
action is_in
entity Germany
action find
entity Wilhelm Valentiner
relation country of citizenship
['Wilhelm Valentiner', 'country of citizenship', 'Germany']
ASK WHERE { resource:Wilhelm_Valentiner property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q8002333,P27,Q183)
action is_in
entity Q183
action find
entity Q8002333
relation P27
[ANSWER]
['Q8002333', 'P27', 'Q183']
ASK WHERE { resource:Q8002333 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Wilhelm Valentiner
relation country of citizenship
['Wilhelm Valentiner', 'country of citizenship', 'Germany']
ASK WHERE { resource:Wilhelm_Valentiner property:country_of_citizenship resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atleast 2406 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2406
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?j >= 2406 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2406
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?j >= 2406 ) }
[]
musical instrument common name
Q5994 Q8355 Q1444
SYSTEM
piano, violin, organ
Q5994 Q8355 Q1444
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2406
[ANSWERS] can atleast 2406 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?j >= 2406 ) }
piano violin organ
Piano, violin and organ can atleast 2406 people perform with
piano violin organ
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2406
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?j >= 2406 ) }
[]