Simple Question (Direct)
Simple Question
Q2016011
P106
Q12737077
USER
What is the job of Sebastian Szałachowski ?
(Q2016011,P106,c(Q12737077))
action filter_type
action find
entity Q2016011
relation P106
type Q12737077
['Q2016011', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2016011 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Sebastian Szałachowski
action filter_type
action find
entity Sebastian Szałachowski
relation occupation
type occupation
['Sebastian Szałachowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Sebastian_Szałachowski property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2016011,P106,c(Q12737077))
action filter_type
action find
entity Q2016011
relation P106
type Q12737077
The job of Sebastian Szałachowski is an [ANSWER]
['Q2016011', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2016011 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
association football player
The job of Sebastian Szałachowski is an association football player
association football player
action filter_type
action find
entity Sebastian Szałachowski
relation occupation
type occupation
['Sebastian Szałachowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Sebastian_Szałachowski property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2016011
P641
Q349
USER
Which sport was Sebastian Szałachowski a part of ?
(Q2016011,P641,c(Q349))
action filter_type
action find
entity Q2016011
relation P641
type Q349
['Q2016011', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q2016011 property:P641 ?c . ?c rdf:type ontology:Q349 }
Sebastian Szałachowski
action filter_type
action find
entity Sebastian Szałachowski
relation sport
type sport
['Sebastian Szałachowski', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Sebastian_Szałachowski property:sport ?c . ?c rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q2016011,P641,c(Q349))
action filter_type
action find
entity Q2016011
relation P641
type Q349
The [ANSWER] was Sebastian Szałachowski a part of
['Q2016011', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q2016011 property:P641 ?c . ?c rdf:type ontology:Q349 }
association football
The association football was Sebastian Szałachowski a part of
association football
action filter_type
action find
entity Sebastian Szałachowski
relation sport
type sport
['Sebastian Szałachowski', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Sebastian_Szałachowski property:sport ?c . ?c rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P805
Q838948
USER
What was that sport dedicated to ?
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?b WHERE { ?b property:P805 resource:Q2736 . ?b rdf:type ontology:Q838948 }
association football
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?b WHERE { ?b property:subject_of resource:association_football . ?b rdf:type ontology:work_of_art }
[]
work of art
Q869862
SYSTEM
Goal!
Q869862
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
[ANSWER] that sport was dedicated
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?b WHERE { ?b property:P805 resource:Q2736 . ?b rdf:type ontology:Q838948 }
Goal!
Goal! that sport was dedicated
Goal!
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?b WHERE { ?b property:subject_of resource:association_football . ?b rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q36180 Q937857
P106
Q502895
USER
Which people have a job as association football player and writer ?
AND((c(Q502895),P106,Q937857), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q937857
relation P106
action find_reverse
entity Q36180
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q937857'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?i WHERE { ?i property:P106 resource:Q36180 . ?i property:P106 resource:Q937857 . ?i rdf:type ontology:Q502895 }
writer association football player
action filter_type
action intersection
action find_reverse
entity association football player
relation occupation
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football player'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?i WHERE { ?i property:occupation resource:writer . ?i property:occupation resource:association_football_player . ?i rdf:type ontology:common_name }
[]
common name
Q1091414 Q3724387 Q610102 Q3189108 Q11902453 Q5618999 Q29516 Q2286680 Q16879980 Q3141607
SYSTEM
Some of them are Carlo Petrini, Emilio De Martino, Charlie Cooke, Julian Sturgis, Wilson Raj Perumal, Gunnar Garfors, Theo Walcott, Johan Derksen, Norbert Düwel, Thomas Bodström
Q2164382 Q940245 Q364398 Q830682 Q1058141 Q7363525 Q19356987 Q21118091 Q29516 Q20731289 Q208557 Q17093660 Q2069447 Q16879980 Q3611517 Q5618999 Q707415 Q3102802 Q3736383 Q3141607 Q2324760 Q11993173 Q333118 Q1110345 Q710080 Q299657 Q3373434 Q3724387 Q2286680 Q1003430 Q3189108 Q610102 Q32812 Q11902453 Q11995458 Q462137 Q3435413 Q3640610 Q3547896 Q1749900 Q1350633 Q925493 Q1659147 Q1974007 Q1091414 Q685434 Q110126 Q2727418 Q1322994 Q2577107 Q1388518 Q202693 Q1978696 Q4778509 Q546107 Q1479438 Q3894483 Q17279769 Q1960711 Q1691828 Q872922 Q1541377 Q6142124 Q3392828 Q543145 Q2572668 Q237541 Q2535794 Q25950543
AND((c(Q502895),P106,Q937857), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q937857
relation P106
action find_reverse
entity Q36180
relation P106
type Q502895
[ANSWERS] have a job as association football player and writer
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q937857'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?i WHERE { ?i property:P106 resource:Q36180 . ?i property:P106 resource:Q937857 . ?i rdf:type ontology:Q502895 }
Robert Neumann Pat Nevin Neil Paterson Marcus Urban Eric Pierpoint Ron Berry John Monteith Wolfgang Pache Theo Walcott Max Urbini Ryan Nelsen Gunnar Talsethagen Francis Couvreur Norbert Düwel Alfredo Viviani Gunnar Garfors Martin Waddell Georges Grard Ezio Glerean Thomas Bodström Jan van Halst Oddmund Fredrik Jacobsen Vaagsholm David Icke Coloman Braun-Bogdan Jan Mulder Rémi Gaillard Bjørn G. Andersen Emilio De Martino Johan Derksen F. W. Bain Julian Sturgis Charlie Cooke Tryggve Gran Wilson Raj Perumal Peter Mykleset Arthur Albiston Lars Joachim Grimstad Bjarne Rønning Ezio Vendrame Philipp Heineken Vlasta Burian Miroslav Ivanov Ilse Kopatz Björn van der Doelen Carlo Petrini Julian Johnsson Hrant Dink David Endt Kenzō Nakajima Willi Gierlich Oliver St. John Gogarty Jo Nesbø Nettie Honeyball Aníbal Machado Harry Gregg Félix Bermudes Paolo Sollier Michele Alboreto Art Langeler Joey Jones Peter Hackmair Angelo Caroli James Riordan Daniel Baldi Denis Scuto Wilhelm Heinrich Focke Veronica Guerin Takeo Takahashi Jaromír Votík
Carlo Petrini, Emilio De Martino, Charlie Cooke, Julian Sturgis, Wilson Raj Perumal, Gunnar Garfors, Theo Walcott, Johan Derksen, Norbert Düwel and Thomas Bodström have a job as association football player and writer
Carlo Petrini Emilio De Martino Charlie Cooke Julian Sturgis Wilson Raj Perumal Gunnar Garfors Theo Walcott Johan Derksen Norbert Düwel Thomas Bodström
action filter_type
action intersection
action find_reverse
entity association football player
relation occupation
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football player'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?i WHERE { ?i property:occupation resource:writer . ?i property:occupation resource:association_football_player . ?i rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4669130 Q2286680
P27
Q15617994
USER
Which administrative territories do Johan Derksen or Abraham Pietersen van Deusen belong to ?
OR((Q2286680,P27,c(Q15617994)), (Q4669130,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2286680
relation P27
action find
entity Q4669130
relation P27
type Q15617994
{'OR': [['Q2286680', 'P27', {'concept': 'Q15617994'}], ['Q4669130', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q2286680 property:P27 ?a } UNION { resource:Q4669130 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Abraham Pietersen van Deusen Johan Derksen
action filter_type
action union
action find
entity Johan Derksen
relation country of citizenship
action find
entity Abraham Pietersen van Deusen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Johan Derksen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Abraham Pietersen van Deusen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Johan_Derksen property:country_of_citizenship ?a } UNION { resource:Abraham_Pietersen_van_Deusen property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999 Q55
SYSTEM
Kingdom of the Netherlands, Netherlands
Q29999 Q55
OR((Q2286680,P27,c(Q15617994)), (Q4669130,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2286680
relation P27
action find
entity Q4669130
relation P27
type Q15617994
Johan Derksen or Abraham Pietersen van Deusen belong to the [ANSWERS]
{'OR': [['Q2286680', 'P27', {'concept': 'Q15617994'}], ['Q4669130', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q2286680 property:P27 ?a } UNION { resource:Q4669130 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Kingdom of the Netherlands Netherlands
Johan Derksen or Abraham Pietersen van Deusen belong to the Kingdom of the Netherlands and Netherlands
Kingdom of the Netherlands Netherlands
action filter_type
action union
action find
entity Johan Derksen
relation country of citizenship
action find
entity Abraham Pietersen van Deusen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Johan Derksen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Abraham Pietersen van Deusen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Johan_Derksen property:country_of_citizenship ?a } UNION { resource:Abraham_Pietersen_van_Deusen property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with greater number of administrative territories than Grenada ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?m ) WHERE { ?w property:P530 ?e . ?w rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Q769 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?m > ?r ) }
Grenada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?m ) WHERE { ?w property:diplomatic_relation ?e . ?w rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Grenada property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m > ?r ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?m ) WHERE { ?w property:P530 ?e . ?w rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Q769 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?m > ?r ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?m ) WHERE { ?w property:diplomatic_relation ?e . ?w rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Grenada property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q781
P530
Q15617994 Q1048835
USER
And how about Antigua and Barbuda?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?b ) WHERE { ?x rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?x property:P530 ?p } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q781 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?g ) }
Antigua and Barbuda
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?b ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?p } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?g ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?b ) WHERE { ?x rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?x property:P530 ?p } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q781 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?g ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?b ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?p } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?g ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q55 Q77
P530
Q1048835
USER
How many political territories have diplomatic relations with Netherlands and Uruguay ?
(c(Q1048835),P530,Q55) (c(Q1048835),P530,Q77)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q77
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q77']
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P530 resource:Q55 . ?n rdf:type ontology:Q1048835 . ?n property:P530 resource:Q77 . ?n rdf:type ontology:Q1048835 }
Netherlands Uruguay
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Uruguay
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Uruguay']
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:diplomatic_relation resource:Netherlands . ?n rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation resource:Uruguay . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q55) (c(Q1048835),P530,Q77)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q77
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q77']
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P530 resource:Q55 . ?n rdf:type ontology:Q1048835 . ?n property:P530 resource:Q77 . ?n rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Uruguay
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Uruguay']
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:diplomatic_relation resource:Netherlands . ?n rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation resource:Uruguay . ?n rdf:type ontology:political_territorial_entity }
[]