Simple Question (Direct)
Simple Question
Q19825012
P19
Q515
USER
Where was Conrad Binding born ?
(Q19825012,P19,c(Q515))
action filter_type
action find
entity Q19825012
relation P19
type Q515
['Q19825012', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q515 . resource:Q19825012 property:P19 ?w }
Conrad Binding
action filter_type
action find
entity Conrad Binding
relation place of birth
type city
['Conrad Binding', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:city . resource:Conrad_Binding property:place_of_birth ?w }
[]
city
Q1794
SYSTEM
Frankfurt
Q1794
(Q19825012,P19,c(Q515))
action filter_type
action find
entity Q19825012
relation P19
type Q515
Conrad Binding was born in [ANSWER]
['Q19825012', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q515 . resource:Q19825012 property:P19 ?w }
Frankfurt
Conrad Binding was born in Frankfurt
Frankfurt
action filter_type
action find
entity Conrad Binding
relation place of birth
type city
['Conrad Binding', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:city . resource:Conrad_Binding property:place_of_birth ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1794
P36
Q7275
USER
Which states have that city as their administrative centre ?
(c(Q7275),P36,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q1794']
SELECT DISTINCT ?k WHERE { ?k property:P36 resource:Q1794 . ?k rdf:type ontology:Q7275 }
Frankfurt
action filter_type
action find_reverse
entity Frankfurt
relation capital
type state
[{'concept': 'state'}, 'capital', 'Frankfurt']
SELECT DISTINCT ?k WHERE { ?k property:capital resource:Frankfurt . ?k rdf:type ontology:state }
[]
state
Q153080 Q18285930
SYSTEM
East Francia, German Empire of 1848/1849
Q153080 Q18285930
(c(Q7275),P36,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P36
type Q7275
[ANSWERS] have that city as their administrative centre
[{'concept': 'Q7275'}, 'P36', 'Q1794']
SELECT DISTINCT ?k WHERE { ?k property:P36 resource:Q1794 . ?k rdf:type ontology:Q7275 }
East Francia German Empire of 1848/1849
East Francia and German Empire of 1848/1849 have that city as their administrative centre
East Francia German Empire of 1848/1849
action filter_type
action find_reverse
entity Frankfurt
relation capital
type state
[{'concept': 'state'}, 'capital', 'Frankfurt']
SELECT DISTINCT ?k WHERE { ?k property:capital resource:Frankfurt . ?k rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q19825012
P1038 P21
Q502895
USER
Which people are kins of Conrad Binding and are a male ?
AND((c(Q502895),P1038,Q19825012), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q19825012
relation P1038
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1038', 'Q19825012'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z property:P1038 resource:Q19825012 . ?z property:P21 resource:Q6581097 . ?z rdf:type ontology:Q502895 }
male Conrad Binding
action filter_type
action intersection
action find_reverse
entity Conrad Binding
relation relative
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'relative', 'Conrad Binding'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z property:relative resource:Conrad_Binding . ?z property:gender resource:male . ?z rdf:type ontology:common_name }
[]
common name
Q19824324
SYSTEM
Karl Binding
Q19824324
AND((c(Q502895),P1038,Q19825012), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q19825012
relation P1038
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] is kins of Conrad Binding and is a male
{'AND': [[{'concept': 'Q502895'}, 'P1038', 'Q19825012'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z property:P1038 resource:Q19825012 . ?z property:P21 resource:Q6581097 . ?z rdf:type ontology:Q502895 }
Karl Binding
Karl Binding is kins of Conrad Binding and is a male
Karl Binding
action filter_type
action intersection
action find_reverse
entity Conrad Binding
relation relative
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'relative', 'Conrad Binding'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z property:relative resource:Conrad_Binding . ?z property:gender resource:male . ?z rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q19824324 Q19824310
P26
Q502895
USER
Does Sophie Binding-Hübscher have that one as spouse ?
(Q19824310,P26,Q19824324)
action is_in
entity Q19824310
action find
entity Q19824324
relation P26
['Q19824310', 'P26', 'Q19824324']
ASK WHERE { resource:Q19824324 property:P26 resource:Q19824310 }
Karl Binding Sophie Binding-Hübscher
action is_in
entity Sophie Binding-Hübscher
action find
entity Karl Binding
relation spouse
['Sophie Binding-Hübscher', 'spouse', 'Karl Binding']
ASK WHERE { resource:Karl_Binding property:spouse resource:Sophie_Binding-Hübscher }
[]
common name
SYSTEM
YES
(Q19824310,P26,Q19824324)
action is_in
entity Q19824310
action find
entity Q19824324
relation P26
[ANSWER]
['Q19824310', 'P26', 'Q19824324']
ASK WHERE { resource:Q19824324 property:P26 resource:Q19824310 }
Yes
action is_in
entity Sophie Binding-Hübscher
action find
entity Karl Binding
relation spouse
['Sophie Binding-Hübscher', 'spouse', 'Karl Binding']
ASK WHERE { resource:Karl_Binding property:spouse resource:Sophie_Binding-Hübscher }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P194
Q1752346 Q11204 Q7275
USER
Which states have max number of assemblies and legislatures as their legislative body ?
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?l WHERE { { ?l property:P194 ?n . ?n rdf:type ontology:Q1752346 . ?l rdf:type ontology:Q7275 } UNION { ?l property:P194 ?n . ?n rdf:type ontology:Q11204 . ?l rdf:type ontology:Q7275 } } GROUP BY ?l } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?v WHERE { ?e rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } } GROUP BY ?v } } }
action argmax
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?l WHERE { { ?l property:legislative_body ?n . ?n rdf:type ontology:assembly . ?l rdf:type ontology:state } UNION { ?l property:legislative_body ?n . ?n rdf:type ontology:legislature . ?l rdf:type ontology:state } } GROUP BY ?l } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?v WHERE { ?e rdf:type ?x . VALUES ( ?x ) { ( ontology:assembly ) ( ontology:legislature ) } } GROUP BY ?v } } }
[]
assembly legislature state
Q131964
SYSTEM
Austrian Empire
Q131964
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
[ANSWER] have max number of assemblies and legislatures as their legislative body
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?l WHERE { { ?l property:P194 ?n . ?n rdf:type ontology:Q1752346 . ?l rdf:type ontology:Q7275 } UNION { ?l property:P194 ?n . ?n rdf:type ontology:Q11204 . ?l rdf:type ontology:Q7275 } } GROUP BY ?l } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?v WHERE { ?e rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } } GROUP BY ?v } } }
Austrian Empire
Austrian Empire have max number of assemblies and legislatures as their legislative body
Austrian Empire
action argmax
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?l WHERE { { ?l property:legislative_body ?n . ?n rdf:type ontology:assembly . ?l rdf:type ontology:state } UNION { ?l property:legislative_body ?n . ?n rdf:type ontology:legislature . ?l rdf:type ontology:state } } GROUP BY ?l } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?v WHERE { ?e rdf:type ?x . VALUES ( ?x ) { ( ontology:assembly ) ( ontology:legislature ) } } GROUP BY ?v } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q131964
P17
Q515
USER
Which cities are situated in that state ?
(c(Q515),P17,Q131964)
action filter_type
action find_reverse
entity Q131964
relation P17
type Q515
[{'concept': 'Q515'}, 'P17', 'Q131964']
SELECT DISTINCT ?w WHERE { ?w property:P17 resource:Q131964 . ?w rdf:type ontology:Q515 }
Austrian Empire
action filter_type
action find_reverse
entity Austrian Empire
relation country
type city
[{'concept': 'city'}, 'country', 'Austrian Empire']
SELECT DISTINCT ?w WHERE { ?w property:country resource:Austrian_Empire . ?w rdf:type ontology:city }
[]
city
Q14960 Q270704 Q321778
SYSTEM
Brno, Třebíč, Hodonín
Q14960 Q270704 Q321778 Q985465 Q722732 Q226000 Q167792 Q837161 Q850982 Q240504 Q654019
(c(Q515),P17,Q131964)
action filter_type
action find_reverse
entity Q131964
relation P17
type Q515
[ANSWERS] are situated in that state
[{'concept': 'Q515'}, 'P17', 'Q131964']
SELECT DISTINCT ?w WHERE { ?w property:P17 resource:Q131964 . ?w rdf:type ontology:Q515 }
Brno Třebíč Hodonín Rakovník Litomyšl Jimbolia Sărmașu Sânnicolau Mare Curtici Makó Příbor
Brno, Třebíč and Hodonín are situated in that state
Brno Třebíč Hodonín
action filter_type
action find_reverse
entity Austrian Empire
relation country
type city
[{'concept': 'city'}, 'country', 'Austrian Empire']
SELECT DISTINCT ?w WHERE { ?w property:country resource:Austrian_Empire . ?w rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1794
P159
Q4830453
USER
Which business enterprises have the principal seat at Frankfurt ?
(c(Q4830453),P159,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P159
type Q4830453
[{'concept': 'Q4830453'}, 'P159', 'Q1794']
SELECT DISTINCT ?u WHERE { ?u property:P159 resource:Q1794 . ?u rdf:type ontology:Q4830453 }
Frankfurt
action filter_type
action find_reverse
entity Frankfurt
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Frankfurt']
SELECT DISTINCT ?u WHERE { ?u property:headquarters_location resource:Frankfurt . ?u rdf:type ontology:business_enterprise }
[]
business enterprise
Q158276 Q269792 Q1152117
SYSTEM
AEG, Ferrero SpA, DB Systel
Q1152117 Q1676681 Q1589170 Q1152100 Q1754870 Q871620 Q269792 Q1487036 Q896102 Q32760 Q682863 Q1184020 Q687175 Q2447882 Q13603020 Q1152043 Q1779885 Q1418307 Q884680 Q158276 Q53098
(c(Q4830453),P159,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P159
type Q4830453
[ANSWERS] have the principal seat at Frankfurt
[{'concept': 'Q4830453'}, 'P159', 'Q1794']
SELECT DISTINCT ?u WHERE { ?u property:P159 resource:Q1794 . ?u rdf:type ontology:Q4830453 }
DB Systel JSK Architekten Hauck & Aufhäuser Flinkster Stadtwerke Verkehrsgesellschaft Frankfurt am Main Gerner Ferrero SpA schneider+schumacher Hessische Landesbahn Liquiditäts-Konsortialbank DELAG Bethmann Bank Deutsche Bundesbahn TraffiQ ABB architekten DB Energie Kombiverkehr Frankfurt-Königsteiner Eisenbahn Philipp Holzmann AEG Adler
AEG, Ferrero SpA and DB Systel have the principal seat at Frankfurt
AEG Ferrero SpA DB Systel
action filter_type
action find_reverse
entity Frankfurt
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Frankfurt']
SELECT DISTINCT ?u WHERE { ?u property:headquarters_location resource:Frankfurt . ?u rdf:type ontology:business_enterprise }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1152117
P466
Q41176
USER
What was inhabited by that business enterprise ?
(c(Q41176),P466,Q1152117)
action filter_type
action find_reverse
entity Q1152117
relation P466
type Q41176
[{'concept': 'Q41176'}, 'P466', 'Q1152117']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q41176 . ?a property:P466 resource:Q1152117 }
DB Systel
action filter_type
action find_reverse
entity DB Systel
relation occupant
type building
[{'concept': 'building'}, 'occupant', 'DB Systel']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:building . ?a property:occupant resource:DB_Systel }
[]
building
Clarification for simple ques.
Q1152117
SYSTEM
Did you mean DB Systel ?
Q158276 Q269792 Q1152117
(c(Q41176),P466,Q158276) (c(Q41176),P466,Q269792) (c(Q41176),P466,Q1152117)
[ANSWER]
[{'concept': 'Q41176'}, 'P466', 'Q158276'] [{'concept': 'Q41176'}, 'P466', 'Q269792'] [{'concept': 'Q41176'}, 'P466', 'Q1152117']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q41176 . ?a property:P466 resource:Q1152117 }
AEG Ferrero SpA DB Systel
Did you mean DB Systel ?
DB Systel
[{'concept': 'building'}, 'occupant', 'AEG'] [{'concept': 'building'}, 'occupant', 'Ferrero SpA'] [{'concept': 'building'}, 'occupant', 'DB Systel']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:building . ?a property:occupant resource:DB_Systel }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q41176),P466,Q1152117)
[{'concept': 'Q41176'}, 'P466', 'Q1152117']
[{'concept': 'building'}, 'occupant', 'DB Systel']
[]
Q247531
SYSTEM
Silberturm
Q247531
(c(Q41176),P466,Q1152117)
action filter_type
action find_reverse
entity Q1152117
relation P466
type Q41176
[ANSWER] was inhabited by that business enterprise
[{'concept': 'Q41176'}, 'P466', 'Q1152117']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q41176 . ?a property:P466 resource:Q1152117 }
Silberturm
Silberturm was inhabited by that business enterprise
Silberturm
action filter_type
action find_reverse
entity DB Systel
relation occupant
type building
[{'concept': 'building'}, 'occupant', 'DB Systel']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:building . ?a property:occupant resource:DB_Systel }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q247531
P793
Q1190554
USER
What is a significant event associated with that building ?
(Q247531,P793,c(Q1190554))
action filter_type
action find
entity Q247531
relation P793
type Q1190554
['Q247531', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?n WHERE { resource:Q247531 property:P793 ?n . ?n rdf:type ontology:Q1190554 }
Silberturm
action filter_type
action find
entity Silberturm
relation significant event
type event
['Silberturm', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?n WHERE { resource:Silberturm property:significant_event ?n . ?n rdf:type ontology:event }
[]
event
Q385378
SYSTEM
construction
Q385378
(Q247531,P793,c(Q1190554))
action filter_type
action find
entity Q247531
relation P793
type Q1190554
A significant event associated with that building is the [ANSWER]
['Q247531', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?n WHERE { resource:Q247531 property:P793 ?n . ?n rdf:type ontology:Q1190554 }
construction
A significant event associated with that building is the construction
construction
action filter_type
action find
entity Silberturm
relation significant event
type event
['Silberturm', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?n WHERE { resource:Silberturm property:significant_event ?n . ?n rdf:type ontology:event }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2832915
Q1190554
USER
And what about Alex Castellanos?
(Q2832915,P793,c(Q1190554))
action filter_type
action find
entity Q2832915
relation P793
type Q1190554
['Q2832915', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?p WHERE { resource:Q2832915 property:P793 ?p . ?p rdf:type ontology:Q1190554 }
Alex Castellanos
action filter_type
action find
entity Alex Castellanos
relation significant event
type event
['Alex Castellanos', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?p WHERE { resource:Alex_Castellanos property:significant_event ?p . ?p rdf:type ontology:event }
[]
event
Q15056768 Q15089689
SYSTEM
Major League Baseball debut, Major League Baseball initial signing
Q15056768 Q15089689
(Q2832915,P793,c(Q1190554))
action filter_type
action find
entity Q2832915
relation P793
type Q1190554
[ANSWERS]
['Q2832915', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?p WHERE { resource:Q2832915 property:P793 ?p . ?p rdf:type ontology:Q1190554 }
Major League Baseball debut Major League Baseball initial signing
Major League Baseball debut Major League Baseball initial signing
action filter_type
action find
entity Alex Castellanos
relation significant event
type event
['Alex Castellanos', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?p WHERE { resource:Alex_Castellanos property:significant_event ?p . ?p rdf:type ontology:event }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P793
Q502895
USER
How many people have that event as a significant event ?
(c(Q502895),P793,Q15056768)
[{'concept': 'Q502895'}, 'P793', 'Q15056768']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P793 resource:Q15056768 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'significant event', 'Major League Baseball debut']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:significant_event resource:Major_League_Baseball_debut . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q15056768
SYSTEM
Did you mean Major League Baseball debut ?
(c(Q502895),P793,Q15056768) (c(Q502895),P793,Q15089689)
[ANSWER]
[{'concept': 'Q502895'}, 'P793', 'Q15056768'] [{'concept': 'Q502895'}, 'P793', 'Q15089689']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P793 resource:Q15056768 . ?z rdf:type ontology:Q502895 }
Did you mean Major League Baseball debut ?
Major League Baseball debut
[{'concept': 'common name'}, 'significant event', 'Major League Baseball debut'] [{'concept': 'common name'}, 'significant event', 'Major League Baseball initial signing']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:significant_event resource:Major_League_Baseball_debut . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P793,Q15056768)
[{'concept': 'Q502895'}, 'P793', 'Q15056768']
[{'concept': 'common name'}, 'significant event', 'Major League Baseball debut']
[]
SYSTEM
103
Q3010462 Q539704 Q2820037 Q3546030 Q2747064 Q2947433 Q5300297 Q1133423 Q2961326 Q2747846 Q422400 Q2390577 Q3181434 Q3154606 Q2746717 Q1356611 Q3423777 Q536221 Q1001871 Q3049104 Q3013125 Q1207375 Q1320688 Q13417041 Q1185309 Q3120920 Q8049780 Q926766 Q5616239 Q3476327 Q3025621 Q389598 Q2928495 Q2964878 Q3187637 Q2026390 Q3181146 Q1972377 Q3574506 Q3047560 Q2159655 Q2402277 Q1933409 Q3266651 Q3185952 Q331064 Q3186005 Q3041278 Q3119872 Q3016418 Q3570763 Q1046185 Q520665 Q1059152 Q50604 Q3286088 Q6987041 Q2964906 Q3299569 Q2832915 Q770084 Q3313600 Q14943730 Q5296943 Q3101708 Q2092249 Q3290090 Q861705 Q509295 Q1189147 Q15102665 Q387042 Q3206278 Q936391 Q1133768 Q5263082 Q450122 Q2895431 Q1059981 Q1529952 Q3112657 Q1710659 Q3028957 Q1208454 Q1093633 Q2924438 Q1151872 Q3294069 Q3050905 Q3039395 Q902679 Q3528632 Q746914 Q2978735 Q2964905 Q2375220 Q2356153 Q3528647 Q1037431 Q742857 Q1076790 Q1042743 Q3417253
(c(Q502895),P793,Q15056768)
[ANSWER]
[{'concept': 'Q502895'}, 'P793', 'Q15056768']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P793 resource:Q15056768 . ?z rdf:type ontology:Q502895 }
César Jiménez Matt Wieters Aaron Cunningham Tyler Pastornicky Dioner Navarro Chad Durbin Doug Bernier Dan Haren Chase Headley Ramón Hernández Víctor Marté Clete Thomas John Ely Irving Falu Jamey Carroll Scott Kazmir Reid Brignac Maicer Izturis Takashi Saito Efren Navarro Dan Johnson Jacoby Ellsbury R.A. Dickey Jeff Kobernus Joe Nathan Ryan Rowland-Smith Yasiel Puig Jhoulys Chacín Guillermo Quiroz Scott Van Slyke Dexter Fowler Nick Punto Burke Badenhop Chris Valaika Juan Díaz Dee Gordon John Buck Paul Molitor Zach Phillips Edgmer Escalona Andrew Albers Joe Beimel Mike Nickeas Luis Cruz Josh Bell Jeff Baker Josh Thole Walt Weiss Jerry Hairston Jr. Darnell McDonald Xavier Paul Michael Young Clayton Kershaw Brian McCann Hyun-jin Ryu Manny Parra Neftali Soto Chris Young Matt Tuiasosopo Alex Castellanos Torii Hunter Mike Zagurski Joey Butler Donzell McDonald George Kottaras A. J. Ellis Marco Estrada David Murphy Chris Capuano Andre Ethier Nick Buss Michael Kirkman LaTroy Hawkins Brandon Allen Heath Bell Derrick Robinson David DeJesus Ben Francisco Andrew Bailey Matt Reynolds Javier López Juan Uribe José Veras Zack Greinke Peter Moylan Brendan Ryan Adrian Gonzalez Mark Ellis Elián Herrera Drew Butera Cody Eppley Tim Federowicz Matt Kemp Clayton Richard Chris Young José Mijares Skip Schumaker Tim Hudson Carl Crawford Justin Sellers Ted Lilly Carlos Beltrán Rafael Ortega
103
[{'concept': 'common name'}, 'significant event', 'Major League Baseball debut']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:significant_event resource:Major_League_Baseball_debut . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q269792
P21 P108
Q502895
USER
Which people have Ferrero SpA as their employer and are a male ?
AND((c(Q502895),P108,Q269792), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q269792
relation P108
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P108', 'Q269792'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?g WHERE { ?g property:P108 resource:Q269792 . ?g property:P21 resource:Q6581097 . ?g rdf:type ontology:Q502895 }
male Ferrero SpA
action filter_type
action intersection
action find_reverse
entity Ferrero SpA
relation employer
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'employer', 'Ferrero SpA'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?g WHERE { ?g property:employer resource:Ferrero_SpA . ?g property:gender resource:male . ?g rdf:type ontology:common_name }
[]
common name
Q251751
SYSTEM
Michele Ferrero
Q251751
AND((c(Q502895),P108,Q269792), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q269792
relation P108
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Ferrero SpA as their employer and are a male
{'AND': [[{'concept': 'Q502895'}, 'P108', 'Q269792'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?g WHERE { ?g property:P108 resource:Q269792 . ?g property:P21 resource:Q6581097 . ?g rdf:type ontology:Q502895 }
Michele Ferrero
Michele Ferrero have Ferrero SpA as their employer and are a male
Michele Ferrero
action filter_type
action intersection
action find_reverse
entity Ferrero SpA
relation employer
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'employer', 'Ferrero SpA'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?g WHERE { ?g property:employer resource:Ferrero_SpA . ?g property:gender resource:male . ?g rdf:type ontology:common_name }
[]