Simple Question (Direct)
Simple Question
Q2391881
P21
Q290
USER
Which sex does Tamás Somorjai have ?
(Q2391881,P21,c(Q290))
action filter_type
action find
entity Q2391881
relation P21
type Q290
['Q2391881', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q2391881 property:P21 ?h . ?h rdf:type ontology:Q290 }
Tamás Somorjai
action filter_type
action find
entity Tamás Somorjai
relation gender
type sex
['Tamás Somorjai', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Tamás_Somorjai property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2391881,P21,c(Q290))
action filter_type
action find
entity Q2391881
relation P21
type Q290
Tamás Somorjai has a [ANSWER]
['Q2391881', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q2391881 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Tamás Somorjai has a male
male
action filter_type
action find
entity Tamás Somorjai
relation gender
type sex
['Tamás Somorjai', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Tamás_Somorjai property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2391881
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q2391881
relation P19
type Q56061
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q2391881 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Tamás Somorjai
action filter_type
action find
entity Tamás Somorjai
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Tamás_Somorjai property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q2391881
relation P19
type Q56061
That person was born in [ANSWER]
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q2391881 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Budapest
That person was born in Budapest
Budapest
action filter_type
action find
entity Tamás Somorjai
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Tamás_Somorjai property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1781 Q2634
P190
Q56061
USER
Is Naples sister town of that one ?
(Q1781,P190,Q2634)
action is_in
entity Q2634
action find
entity Q1781
relation P190
['Q1781', 'P190', 'Q2634']
ASK WHERE { resource:Q1781 property:P190 resource:Q2634 }
Budapest Naples
action is_in
entity Naples
action find
entity Budapest
relation sister city
['Budapest', 'sister city', 'Naples']
ASK WHERE { resource:Budapest property:sister_city resource:Naples }
[]
administrative territorial entity
SYSTEM
YES
(Q1781,P190,Q2634)
action is_in
entity Q2634
action find
entity Q1781
relation P190
[ANSWER]
['Q1781', 'P190', 'Q2634']
ASK WHERE { resource:Q1781 property:P190 resource:Q2634 }
Yes
action is_in
entity Naples
action find
entity Budapest
relation sister city
['Budapest', 'sister city', 'Naples']
ASK WHERE { resource:Budapest property:sister_city resource:Naples }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P206
Q355304
USER
Which watercourse is located next to Budapest ?
(Q1781,P206,c(Q355304))
action filter_type
action find
entity Q1781
relation P206
type Q355304
['Q1781', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?u WHERE { resource:Q1781 property:P206 ?u . ?u rdf:type ontology:Q355304 }
Budapest
action filter_type
action find
entity Budapest
relation located next to body of water
type watercourse
['Budapest', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?u WHERE { resource:Budapest property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse }
[]
watercourse
Q1653
SYSTEM
Danube
Q1653
(Q1781,P206,c(Q355304))
action filter_type
action find
entity Q1781
relation P206
type Q355304
Budapest [ANSWER] is located next to Budapest
['Q1781', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?u WHERE { resource:Q1781 property:P206 ?u . ?u rdf:type ontology:Q355304 }
Danube
Budapest Danube is located next to Budapest
Danube
action filter_type
action find
entity Budapest
relation located next to body of water
type watercourse
['Budapest', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?u WHERE { resource:Budapest property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1029
Q502895 Q2235308 Q12973014
USER
How many people were the crew members of exactly 1 ship types and sports teams ?
(c(Q2235308)|c(Q12973014),P1029,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q2235308
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q12973014
value 1
[[{'concept': 'Q2235308'}, {'concept': 'Q12973014'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) ?t WHERE { { ?a property:P1029 ?t . ?t rdf:type ontology:Q502895 . ?a rdf:type ontology:Q2235308 } UNION { ?t rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12973014 . ?a property:P1029 ?t } } GROUP BY ?t } . FILTER ( ?j = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation crew member
type common name
type ship type
action find_reverse_tuple_counts
relation crew member
type common name
type sports team
value 1
[[{'concept': 'ship type'}, {'concept': 'sports team'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) ?t WHERE { { ?a property:crew_member ?t . ?t rdf:type ontology:common_name . ?a rdf:type ontology:ship_type } UNION { ?t rdf:type ontology:common_name . ?a rdf:type ontology:sports_team . ?a property:crew_member ?t } } GROUP BY ?t } . FILTER ( ?j = 1 ) }
[]
common name ship type sports team
SYSTEM
75
Q11813619 Q172001 Q257778 Q554538 Q61395 Q173190 Q362174 Q17541629 Q70928 Q18431930 Q78499 Q121797 Q82798 Q3183604 Q1400906 Q82864 Q1693251 Q1680121 Q445419 Q529119 Q15613580 Q171294 Q731751 Q115552 Q453542 Q23663985 Q82667 Q719413 Q116294 Q961419 Q977386 Q68329 Q70033 Q1361680 Q17478723 Q4252659 Q361113 Q172783 Q70468 Q1448596 Q334084 Q2093835 Q124809 Q578675 Q1914370 Q73081 Q616303 Q23664678 Q1853048 Q17542124 Q3339766 Q247508 Q82901 Q85493 Q171310 Q1333070 Q3189408 Q23664692 Q17385517 Q23664385 Q2279606 Q1985717 Q466522 Q23664799 Q2050429 Q84178 Q977664 Q1872734 Q171302 Q172838 Q906626 Q64684 Q723989 Q171319 Q442910
(c(Q2235308)|c(Q12973014),P1029,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q2235308
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q12973014
value 1
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q12973014'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) ?t WHERE { { ?a property:P1029 ?t . ?t rdf:type ontology:Q502895 . ?a rdf:type ontology:Q2235308 } UNION { ?t rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12973014 . ?a property:P1029 ?t } } GROUP BY ?t } . FILTER ( ?j = 1 ) }
Paul-Loup Chatin Tiago Monteiro Danny Watts Nicolas Minassian André Lotterer Gianmaria Bruni Ho-Pin Tung Vincent Capillaire Daniel Abt Matt Rao Alexander Wurz Mathias Beche Kamui Kobayashi Jonny Kane Tom Dillmann Bruno Senna Nick Tandy James Calado Andy Priaulx James Rossiter Gustavo Menezes Vitantonio Liuzzi Marino Franchitti Neel Jani Davide Rigon Billy Johnson Mark Webber David Heinemeier Hansson Marcel Fässler John Martin Roberto Merhi Stefan Mücke Marc Lieb Nathanaël Berthon Hans-Kurt von Bremen Kirill Ladygin Brendon Hartley Lucas di Grassi Otto von Bülow Harry Tincknell Thomas Grenville Pierre Ragues Mathéo Tuscher Benoît Tréluyer Oliver Webb Pierre Kaffer Stéphane Richelmi Chris Cumming Michael Christensen Viktor Shaitar Nick Leventis Marco Bonanomi Vitaly Petrov Richard Lietz Sébastien Buemi Oliver Jarvis Julien Canal David Cheng Matthew Howson Maurizio Mediani Jon Fogarty Nicki Thiim Gustavo Yacamán Yutaka Yamagishi Paolo Ruberti Christian Klien Marco Sørensen Loïc Duval Kazuki Nakajima Nelson Piquet Jr. Romain Dumas Timo Bernhard Tsugio Matsuda Anthony Davidson Darren Turner
75
action count
action equal
action union
action find_reverse_tuple_counts
relation crew member
type common name
type ship type
action find_reverse_tuple_counts
relation crew member
type common name
type sports team
value 1
[[{'concept': 'ship type'}, {'concept': 'sports team'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) ?t WHERE { { ?a property:crew_member ?t . ?t rdf:type ontology:common_name . ?a rdf:type ontology:ship_type } UNION { ?t rdf:type ontology:common_name . ?a rdf:type ontology:sports_team . ?a property:crew_member ?t } } GROUP BY ?t } . FILTER ( ?j = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1653
P30
Q2221906
USER
Which geographic location is Danube situated in ?
(Q1653,P30,c(Q2221906))
action filter_type
action find
entity Q1653
relation P30
type Q2221906
['Q1653', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?e WHERE { resource:Q1653 property:P30 ?e . ?e rdf:type ontology:Q2221906 }
Danube
action filter_type
action find
entity Danube
relation continent
type geographic location
['Danube', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?e WHERE { resource:Danube property:continent ?e . ?e rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q1653,P30,c(Q2221906))
action filter_type
action find
entity Q1653
relation P30
type Q2221906
Danube is situated in [ANSWER]
['Q1653', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?e WHERE { resource:Q1653 property:P30 ?e . ?e rdf:type ontology:Q2221906 }
Europe
Danube is situated in Europe
Europe
action filter_type
action find
entity Danube
relation continent
type geographic location
['Danube', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?e WHERE { resource:Danube property:continent ?e . ?e rdf:type ontology:geographic_location }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1653
P706
Q82794
USER
Which geographic region is Danube located on ?
(Q1653,P706,c(Q82794))
action filter_type
action find
entity Q1653
relation P706
type Q82794
['Q1653', 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ?e WHERE { resource:Q1653 property:P706 ?e . ?e rdf:type ontology:Q82794 }
Danube
action filter_type
action find
entity Danube
relation located on terrain feature
type geographic region
['Danube', 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ?e WHERE { resource:Danube property:located_on_terrain_feature ?e . ?e rdf:type ontology:geographic_region }
[]
geographic region
Q12046593
SYSTEM
Danube basin
Q12046593
(Q1653,P706,c(Q82794))
action filter_type
action find
entity Q1653
relation P706
type Q82794
Danube is located in [ANSWER]
['Q1653', 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ?e WHERE { resource:Q1653 property:P706 ?e . ?e rdf:type ontology:Q82794 }
Danube basin
Danube is located in Danube basin
Danube basin
action filter_type
action find
entity Danube
relation located on terrain feature
type geographic region
['Danube', 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ?e WHERE { resource:Danube property:located_on_terrain_feature ?e . ?e rdf:type ontology:geographic_region }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4390717
Q82794
USER
And how about Rata?
(Q4390717,P706,c(Q82794))
action filter_type
action find
entity Q4390717
relation P706
type Q82794
['Q4390717', 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ?j WHERE { resource:Q4390717 property:P706 ?j . ?j rdf:type ontology:Q82794 }
Rata
action filter_type
action find
entity Rata
relation located on terrain feature
type geographic region
['Rata', 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ?j WHERE { resource:Rata property:located_on_terrain_feature ?j . ?j rdf:type ontology:geographic_region }
[]
geographic region
Q20925112
SYSTEM
Bug Basin
Q20925112
(Q4390717,P706,c(Q82794))
action filter_type
action find
entity Q4390717
relation P706
type Q82794
[ANSWER]
['Q4390717', 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ?j WHERE { resource:Q4390717 property:P706 ?j . ?j rdf:type ontology:Q82794 }
Bug Basin
Bug Basin
action filter_type
action find
entity Rata
relation located on terrain feature
type geographic region
['Rata', 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ?j WHERE { resource:Rata property:located_on_terrain_feature ?j . ?j rdf:type ontology:geographic_region }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4390717
P17
Q15617994
USER
Which administrative territories are Rata present in ?
(Q4390717,P17,c(Q15617994))
action filter_type
action find
entity Q4390717
relation P17
type Q15617994
['Q4390717', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q4390717 property:P17 ?u }
Rata
action filter_type
action find
entity Rata
relation country
type designation for an administrative territorial entity
['Rata', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rata property:country ?u }
[]
designation for an administrative territorial entity
Q212 Q36
SYSTEM
Ukraine, Poland
Q212 Q36
(Q4390717,P17,c(Q15617994))
action filter_type
action find
entity Q4390717
relation P17
type Q15617994
Rata are of [ANSWERS]
['Q4390717', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q4390717 property:P17 ?u }
Ukraine Poland
Rata are of Ukraine and Poland
Ukraine Poland
action filter_type
action find
entity Rata
relation country
type designation for an administrative territorial entity
['Rata', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rata property:country ?u }
[]
Clarification
Simple Question|Single Entity|Indirect
Q36
P276
Q15259995
USER
Which recurring tournament is situated at that administrative territory ?
(c(Q15259995),P276,Q36)
action filter_type
action find_reverse
entity Q36
relation P276
type Q15259995
[{'concept': 'Q15259995'}, 'P276', 'Q36']
SELECT DISTINCT ?e WHERE { ?e property:P276 resource:Q36 . ?e rdf:type ontology:Q15259995 }
Poland
action filter_type
action find_reverse
entity Poland
relation location
type recurring tournament
[{'concept': 'recurring tournament'}, 'location', 'Poland']
SELECT DISTINCT ?e WHERE { ?e property:location resource:Poland . ?e rdf:type ontology:recurring_tournament }
[]
recurring tournament
Clarification for simple ques.
Q212
SYSTEM
Did you mean Ukraine ?
Q212 Q36
(c(Q15259995),P276,Q212) (c(Q15259995),P276,Q36)
[ANSWER]
[{'concept': 'Q15259995'}, 'P276', 'Q212'] [{'concept': 'Q15259995'}, 'P276', 'Q36']
SELECT DISTINCT ?e WHERE { ?e property:P276 resource:Q36 . ?e rdf:type ontology:Q15259995 }
Ukraine Poland
Did you mean Ukraine ?
Ukraine
[{'concept': 'recurring tournament'}, 'location', 'Ukraine'] [{'concept': 'recurring tournament'}, 'location', 'Poland']
SELECT DISTINCT ?e WHERE { ?e property:location resource:Poland . ?e rdf:type ontology:recurring_tournament }
[]
Simple Question (Coreferenced)
USER
No, I meant Poland. Could you tell me the answer for that?
(c(Q15259995),P276,Q36)
Q36
[{'concept': 'Q15259995'}, 'P276', 'Q36']
[{'concept': 'recurring tournament'}, 'location', 'Poland']
[]
Q2520188
SYSTEM
2014 FIVB Men's Volleyball World Championship
Q2520188
(c(Q15259995),P276,Q36)
action filter_type
action find_reverse
entity Q36
relation P276
type Q15259995
[ANSWER] is situated at that administrative territory
[{'concept': 'Q15259995'}, 'P276', 'Q36']
SELECT DISTINCT ?e WHERE { ?e property:P276 resource:Q36 . ?e rdf:type ontology:Q15259995 }
2014 FIVB Men's Volleyball World Championship
2014 FIVB Men's Volleyball World Championship is situated at that administrative territory
2014 FIVB Men's Volleyball World Championship
action filter_type
action find_reverse
entity Poland
relation location
type recurring tournament
[{'concept': 'recurring tournament'}, 'location', 'Poland']
SELECT DISTINCT ?e WHERE { ?e property:location resource:Poland . ?e rdf:type ontology:recurring_tournament }
[]