Simple Question (Direct)
Simple Question
Q6846881
P54
Q874405
USER
What are the team that Mike Ford are a member of ?
(Q6846881,P54,c(Q874405))
action filter_type
action find
entity Q6846881
relation P54
type Q874405
['Q6846881', 'P54', {'concept': 'Q874405'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q874405 . resource:Q6846881 property:P54 ?z }
Mike Ford
action filter_type
action find
entity Mike Ford
relation member of sports team
type social group
['Mike Ford', 'member of sports team', {'concept': 'social group'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:social_group . resource:Mike_Ford property:member_of_sports_team ?z }
[]
social group
Q1210267 Q2941467 Q7085655
SYSTEM
Wigan Warriors, Castleford Tigers, Oldham Roughyeds
Q2941467 Q7085655 Q3229159 Q1210267 Q2549837
(Q6846881,P54,c(Q874405))
action filter_type
action find
entity Q6846881
relation P54
type Q874405
The team that Mike Ford are a member of are the [ANSWERS]
['Q6846881', 'P54', {'concept': 'Q874405'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q874405 . resource:Q6846881 property:P54 ?z }
Castleford Tigers Oldham Roughyeds Leigh Centurions Wigan Warriors Warrington Wolves
The team that Mike Ford are a member of are the Wigan Warriors, Castleford Tigers and Oldham Roughyeds
Wigan Warriors Castleford Tigers Oldham Roughyeds
action filter_type
action find
entity Mike Ford
relation member of sports team
type social group
['Mike Ford', 'member of sports team', {'concept': 'social group'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:social_group . resource:Mike_Ford property:member_of_sports_team ?z }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1210267 Q2941467 Q7085655
P17
Q15617994
USER
Which administrative territories are those social groups situated in ?
(Q1210267,P17,c(Q15617994)) (Q2941467,P17,c(Q15617994)) (Q7085655,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q1210267', 'P17', {'concept': 'Q15617994'}] ['Q2941467', 'P17', {'concept': 'Q15617994'}] ['Q7085655', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . VALUES ( ?b ) { ( resource:Q2941467 ) ( resource:Q7085655 ) ( resource:Q3229159 ) } . ?b property:P17 ?e }
Wigan Warriors Castleford Tigers Oldham Roughyeds
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Wigan Warriors', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Castleford Tigers', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Oldham Roughyeds', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?b ) { ( resource:Castleford_Tigers ) ( resource:Oldham_Roughyeds ) ( resource:Leigh_Centurions ) } . ?b property:country ?e }
[]
designation for an administrative territorial entity
Q145 Q145 Q145
SYSTEM
United Kingdom
Q145 Q145 Q145
(Q1210267,P17,c(Q15617994)) (Q2941467,P17,c(Q15617994)) (Q7085655,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those social groups are situated in [ANSWER], [ANSWER] and [ANSWER]
['Q1210267', 'P17', {'concept': 'Q15617994'}] ['Q2941467', 'P17', {'concept': 'Q15617994'}] ['Q7085655', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . VALUES ( ?b ) { ( resource:Q2941467 ) ( resource:Q7085655 ) ( resource:Q3229159 ) } . ?b property:P17 ?e }
United Kingdom United Kingdom United Kingdom
Those social groups are situated in United Kingdom, United Kingdom and United Kingdom
United Kingdom United Kingdom United Kingdom
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Wigan Warriors', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Castleford Tigers', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Oldham Roughyeds', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?b ) { ( resource:Castleford_Tigers ) ( resource:Oldham_Roughyeds ) ( resource:Leigh_Centurions ) } . ?b property:country ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1210267
P127
Q811979
USER
What is owned by Wigan Warriors ?
(c(Q811979),P127,Q145) (c(Q811979),P127,Q145) (c(Q811979),P127,Q145)
action filter_type
action find_reverse
entity Q1210267
relation P127
type Q811979
[{'concept': 'Q811979'}, 'P127', 'Q145'] [{'concept': 'Q811979'}, 'P127', 'Q145'] [{'concept': 'Q811979'}, 'P127', 'Q145']
SELECT DISTINCT ?b WHERE { ?b property:P127 resource:Q1210267 . ?b rdf:type ontology:Q811979 }
Wigan Warriors
action filter_type
action find_reverse
entity Wigan Warriors
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'United Kingdom'] [{'concept': 'architectural structure'}, 'owned by', 'United Kingdom'] [{'concept': 'architectural structure'}, 'owned by', 'United Kingdom']
SELECT DISTINCT ?b WHERE { ?b property:owned_by resource:Wigan_Warriors . ?b rdf:type ontology:architectural_structure }
[]
architectural structure
Q7726518
SYSTEM
Edge Hall Road
Q7726518
(c(Q811979),P127,Q145) (c(Q811979),P127,Q145) (c(Q811979),P127,Q145)
action filter_type
action find_reverse
entity Q1210267
relation P127
type Q811979
And [ANSWER] is owned by Wigan Warriors
[{'concept': 'Q811979'}, 'P127', 'Q145'] [{'concept': 'Q811979'}, 'P127', 'Q145'] [{'concept': 'Q811979'}, 'P127', 'Q145']
SELECT DISTINCT ?b WHERE { ?b property:P127 resource:Q1210267 . ?b rdf:type ontology:Q811979 }
Edge Hall Road
And Edge Hall Road is owned by Wigan Warriors
Edge Hall Road
action filter_type
action find_reverse
entity Wigan Warriors
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'United Kingdom'] [{'concept': 'architectural structure'}, 'owned by', 'United Kingdom'] [{'concept': 'architectural structure'}, 'owned by', 'United Kingdom']
SELECT DISTINCT ?b WHERE { ?b property:owned_by resource:Wigan_Warriors . ?b rdf:type ontology:architectural_structure }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q215
P206
Q15324 Q1267889 Q15617994
USER
How many administrative territories are situated close to less number of bodies of water and waterways than Slovenia ?
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q215
relation P206
type Q15324
type Q1267889
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) ?z WHERE { { ?z property:P206 ?c . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15324 } UNION { ?z property:P206 ?c . ?c rdf:type ontology:Q1267889 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { resource:Q215 property:P206 ?l . { { ?l rdf:type ontology:Q15324 } UNION { ?l rdf:type ontology:Q1267889 } } } } . FILTER ( ?o < ?y ) }
Slovenia
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Slovenia
relation located next to body of water
type body of water
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) ?z WHERE { { ?z property:located_next_to_body_of_water ?c . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:body_of_water } UNION { ?z property:located_next_to_body_of_water ?c . ?c rdf:type ontology:waterway . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { resource:Slovenia property:located_next_to_body_of_water ?l . { { ?l rdf:type ontology:body_of_water } UNION { ?l rdf:type ontology:waterway } } } } . FILTER ( ?o < ?y ) }
[]
body of water waterway designation for an administrative territorial entity
SYSTEM
111
Q505785 Q104577 Q3066319 Q31872 Q668 Q525879 Q572949 Q267993 Q525864 Q487328 Q47585 Q1604782 Q241358 Q6237 Q2316529 Q525945 Q14859 Q508863 Q1650693 Q1009384 Q657 Q214 Q622487 Q4628 Q503693 Q4391124 Q664950 Q528579 Q493924 Q555609 Q161258 Q491751 Q10903 Q11343 Q263451 Q442666 Q14825 Q3111694 Q244095 Q532046 Q7566251 Q7496670 Q307508 Q6685 Q3352704 Q252772 Q104192 Q519663 Q2360428 Q255698 Q681329 Q1984541 Q560870 Q621469 Q28 Q29 Q3088406 Q690219 Q917406 Q511806 Q548982 Q2043234 Q42265 Q14889 Q229 Q347 Q338094 Q3939 Q525889 Q622456 Q154322 Q509998 Q539787 Q7042 Q525900 Q507258 Q213 Q547059 Q269010 Q262684 Q573230 Q1604772 Q3923 Q174307 Q522992 Q20267 Q522677 Q194136 Q257859 Q252320 Q251778 Q895413 Q53742 Q567984 Q526087 Q1604766 Q7561974 Q948 Q2758 Q1974 Q573454 Q509536 Q4077862 Q1984544 Q494305 Q304745 Q542837 Q12056 Q4149191 Q7942378 Q47612
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q215
relation P206
type Q15324
type Q1267889
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) ?z WHERE { { ?z property:P206 ?c . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15324 } UNION { ?z property:P206 ?c . ?c rdf:type ontology:Q1267889 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { resource:Q215 property:P206 ?l . { { ?l rdf:type ontology:Q15324 } UNION { ?l rdf:type ontology:Q1267889 } } } } . FILTER ( ?o < ?y ) }
Pförring Desenzano del Garda Fala-Beguets Moosburg an der Isar India Haundorf Solnhofen Muhr am See Höttingen Marktl Garda Ulul Schleiden Lecco Noordpolderzijl Pfofeld Ansbach Mindelstetten Niamey III Weno Chad Slovakia Päwesin Faroe Islands Riedenburg Rakhlitsy Loddin Wörth an der Isar Pasewalk Magdala Clipperton Island Pfatter Finnentrop Wetter (Ruhr) Oberdolling Altmannstein Memmingen Gouraya, Tipaza Bellagio Fischen South Bay Shillingford Yepifan Dorfhain Oneop Eichstätt Kleinmachnow Kösching Tijuana Municipality Abensberg Dümmer Niamey II Owschlag Wennigsen Hungary Spain Front de Seine Perlin Niamey V North Slope Borough Heidenheim Almere Buiten Abbadia Lariana Schwabach Cyprus Liechtenstein Polsingen Dinslaken Westheim Lage South Bank Wellheim Markt Berolzheim Amberg Meinheim Kipfenberg Czech Republic Gnotzheim Neustadt an der Donau Füssen Beilngries Moch Bayreuth Essing Braunlage Schwarz Nassenfels Riva del Garda Cham Pleinfeld Vohburg Bowen Island Donauwörth Woleai Nennslingen Pisaras Sonning Eye Tunisia Mönchengladbach British Columbia Hedersleben Landau an der Isar Baranovskiy Niamey I Kelheim Niamey IV Ettenstatt Oschatz Grigorovo Voxna Domaso
111
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Slovenia
relation located next to body of water
type body of water
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) ?z WHERE { { ?z property:located_next_to_body_of_water ?c . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:body_of_water } UNION { ?z property:located_next_to_body_of_water ?c . ?c rdf:type ontology:waterway . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { resource:Slovenia property:located_next_to_body_of_water ?l . { { ?l rdf:type ontology:body_of_water } UNION { ?l rdf:type ontology:waterway } } } } . FILTER ( ?o < ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q34
P206
Q15324 Q1267889 Q15617994
USER
And how about Sweden?
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q34
relation P206
type Q15324
type Q1267889
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) ?z WHERE { VALUES ( ?n ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?y rdf:type ?n } GROUP BY ?z } . FILTER ( ?w < ?b ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Q34 property:P206 ?j . { { ?j rdf:type ontology:Q15324 } UNION { ?j rdf:type ontology:Q1267889 } } } } }
Sweden
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Sweden
relation located next to body of water
type body of water
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) ?z WHERE { VALUES ( ?n ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?y rdf:type ?n } GROUP BY ?z } . FILTER ( ?w < ?b ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Sweden property:located_next_to_body_of_water ?j . { { ?j rdf:type ontology:body_of_water } UNION { ?j rdf:type ontology:waterway } } } } }
[]
body of water waterway designation for an administrative territorial entity
SYSTEM
131
Q21111 Q505785 Q104577 Q446425 Q3066319 Q31872 Q668 Q525879 Q572949 Q267993 Q525864 Q55 Q487328 Q47585 Q1604782 Q241358 Q6237 Q2316529 Q525945 Q14859 Q508863 Q568926 Q1650693 Q1009384 Q657 Q214 Q622487 Q4628 Q503693 Q4391124 Q664950 Q528579 Q493924 Q555609 Q161258 Q491751 Q10903 Q11343 Q263451 Q442666 Q14825 Q3111694 Q216422 Q244095 Q532046 Q7566251 Q7496670 Q307508 Q36 Q38 Q6685 Q3352704 Q252772 Q769680 Q104192 Q519663 Q2360428 Q255698 Q236 Q681329 Q1984541 Q560870 Q20 Q621469 Q28 Q29 Q3088406 Q690219 Q917406 Q511806 Q548982 Q3038 Q2043234 Q42265 Q225 Q224 Q222 Q14889 Q229 Q347 Q17 Q338094 Q3939 Q1577 Q525889 Q622456 Q154322 Q509998 Q539787 Q7042 Q525900 Q516567 Q507258 Q213 Q547059 Q215 Q269010 Q262684 Q573230 Q1604772 Q3923 Q174307 Q522992 Q1009 Q1438 Q20267 Q522677 Q194136 Q257859 Q252320 Q251778 Q895413 Q53742 Q567984 Q526087 Q1604766 Q7561974 Q948 Q2758 Q1974 Q573454 Q509536 Q4077862 Q1984544 Q494305 Q304745 Q542837 Q12056 Q4149191 Q7942378 Q47612
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q34
relation P206
type Q15324
type Q1267889
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) ?z WHERE { VALUES ( ?n ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?y rdf:type ?n } GROUP BY ?z } . FILTER ( ?w < ?b ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Q34 property:P206 ?j . { { ?j rdf:type ontology:Q15324 } UNION { ?j rdf:type ontology:Q1267889 } } } } }
Corn Islands Pförring Desenzano del Garda Altwarp Fala-Beguets Moosburg an der Isar India Haundorf Solnhofen Muhr am See Höttingen Netherlands Marktl Garda Ulul Schleiden Lecco Noordpolderzijl Pfofeld Ansbach Mindelstetten Maasholm Niamey III Weno Chad Slovakia Päwesin Faroe Islands Riedenburg Rakhlitsy Loddin Wörth an der Isar Pasewalk Magdala Clipperton Island Pfatter Finnentrop Wetter (Ruhr) Oberdolling Altmannstein Memmingen Gouraya, Tipaza Samsø Bellagio Fischen South Bay Shillingford Yepifan Poland Italy Dorfhain Oneop Eichstätt Bornholm Kleinmachnow Kösching Tijuana Municipality Abensberg Montenegro Dümmer Niamey II Owschlag Norway Wennigsen Hungary Spain Front de Seine Perlin Niamey V North Slope Borough Heidenheim Helgoland Almere Buiten Abbadia Lariana Bosnia and Herzegovina Croatia Albania Schwabach Cyprus Liechtenstein Japan Polsingen Dinslaken Neuwerk Westheim Lage South Bank Wellheim Markt Berolzheim Amberg Meinheim Kappeln Kipfenberg Czech Republic Gnotzheim Slovenia Neustadt an der Donau Füssen Beilngries Moch Bayreuth Essing Braunlage Cameroon Campania Schwarz Nassenfels Riva del Garda Cham Pleinfeld Vohburg Bowen Island Donauwörth Woleai Nennslingen Pisaras Sonning Eye Tunisia Mönchengladbach British Columbia Hedersleben Landau an der Isar Baranovskiy Niamey I Kelheim Niamey IV Ettenstatt Oschatz Grigorovo Voxna Domaso
131
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Sweden
relation located next to body of water
type body of water
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) ?z WHERE { VALUES ( ?n ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?y rdf:type ?n } GROUP BY ?z } . FILTER ( ?w < ?b ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Sweden property:located_next_to_body_of_water ?j . { { ?j rdf:type ontology:body_of_water } UNION { ?j rdf:type ontology:waterway } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q1428
P463
Q43229
USER
How many organizations were United Kingdom or Georgia a member of ?
(Q145,P463,c(Q43229)) (Q1428,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q145
relation P463
type Q43229
action filter_type
action find
entity Q1428
relation P463
type Q43229
['Q145', 'P463', {'concept': 'Q43229'}] ['Q1428', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { resource:Q145 property:P463 ?i . ?i rdf:type ontology:Q43229 } UNION { ?i rdf:type ontology:Q43229 . resource:Q1428 property:P463 ?i } }
United Kingdom Georgia
action count
action union
action filter_type
action find
entity United Kingdom
relation member of
type organization
action filter_type
action find
entity Georgia
relation member of
type organization
['United Kingdom', 'member of', {'concept': 'organization'}] ['Georgia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { resource:United_Kingdom property:member_of ?i . ?i rdf:type ontology:organization } UNION { ?i rdf:type ontology:organization . resource:Georgia property:member_of ?i } }
[]
organization
SYSTEM
10
Q340195 Q191384 Q899770 Q41550 Q3772571 Q380340 Q656801 Q151991 Q7825 Q827525
(Q145,P463,c(Q43229)) (Q1428,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q145
relation P463
type Q43229
action filter_type
action find
entity Q1428
relation P463
type Q43229
[ANSWER]
['Q145', 'P463', {'concept': 'Q43229'}] ['Q1428', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { resource:Q145 property:P463 ?i . ?i rdf:type ontology:Q43229 } UNION { ?i rdf:type ontology:Q43229 . resource:Q1428 property:P463 ?i } }
African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development Caribbean Development Bank Organization of the Black Sea Economic Cooperation International Finance Corporation European Southern Observatory World Trade Organization International Development Association
10
action count
action union
action filter_type
action find
entity United Kingdom
relation member of
type organization
action filter_type
action find
entity Georgia
relation member of
type organization
['United Kingdom', 'member of', {'concept': 'organization'}] ['Georgia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { resource:United_Kingdom property:member_of ?i . ?i rdf:type ontology:organization } UNION { ?i rdf:type ontology:organization . resource:Georgia property:member_of ?i } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P530
Q1048835
USER
What political territories have diplomatic relationships with that administrative territory ?
action filter_type
action find
entity Q145
relation P530
type Q1048835
SELECT DISTINCT ?i WHERE { resource:Q145 property:P530 ?i . ?i rdf:type ontology:Q1048835 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
SELECT DISTINCT ?i WHERE { resource:United_Kingdom property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
action filter_type
action find
entity Q145
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with that administrative territory
SELECT DISTINCT ?i WHERE { resource:Q145 property:P530 ?i . ?i rdf:type ontology:Q1048835 }
Canada Australia Germany
Canada, Australia and Germany have diplomatic relationships with that administrative territory
Canada Australia Germany
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
SELECT DISTINCT ?i WHERE { resource:United_Kingdom property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q16 Q408 Q183
P35
Q502895
USER
Which people are the heads of state of Canada, Australia and Germany ?
(Q16,P35,c(Q502895)) (Q408,P35,c(Q502895)) (Q183,P35,c(Q502895))
action union
action filter_type
action find
entity Q16
relation P35
type Q502895
action filter_type
action find
entity Q408
relation P35
type Q502895
action filter_type
action find
entity Q183
relation P35
type Q502895
['Q16', 'P35', {'concept': 'Q502895'}] ['Q408', 'P35', {'concept': 'Q502895'}] ['Q183', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?c ) { ( resource:Q408 ) ( resource:Q16 ) } . ?c property:P35 ?d }
Canada Australia Germany
action union
action filter_type
action find
entity Canada
relation head of state
type common name
action filter_type
action find
entity Australia
relation head of state
type common name
action filter_type
action find
entity Germany
relation head of state
type common name
['Canada', 'head of state', {'concept': 'common name'}] ['Australia', 'head of state', {'concept': 'common name'}] ['Germany', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?c ) { ( resource:Australia ) ( resource:Canada ) } . ?c property:head_of_state ?d }
[]
common name
Q2567 Q9682 Q9682
SYSTEM
Richard von Weizsäcker for 1st, Elizabeth II for 2nd, 3rd
Q590227 Q20875 Q9682 Q9439 Q269412 Q280856 Q189186 Q1354851 Q335033 Q355053 Q335310 Q1356927 Q1382174 Q250087 Q335323 Q229300 Q1354229 Q976974 Q9682 Q267745 Q735387 Q333824 Q2569 Q2594 Q2538 Q2573 Q2563 Q2571 Q2567 Q2551 Q2542 Q2540 Q2582
(Q16,P35,c(Q502895)) (Q408,P35,c(Q502895)) (Q183,P35,c(Q502895))
action union
action filter_type
action find
entity Q16
relation P35
type Q502895
action filter_type
action find
entity Q408
relation P35
type Q502895
action filter_type
action find
entity Q183
relation P35
type Q502895
[ANSWERS]
['Q16', 'P35', {'concept': 'Q502895'}] ['Q408', 'P35', {'concept': 'Q502895'}] ['Q183', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?c ) { ( resource:Q408 ) ( resource:Q16 ) } . ?c property:P35 ?d }
Edward VIII Edward VII Elizabeth II Queen Victoria George V George VI Zelman Cowen John Kerr William Slim, 1st Viscount Slim Michael Jeffery Richard Casey, Baron Casey Ninian Stephen Paul Hasluck Bill Hayden William Morrison, 1st Viscount Dunrossil Quentin Bryce Peter Hollingworth Peter Cosgrove Elizabeth II William Deane William McKell William Sidney, 1st Viscount De L'Isle Karl Carstens Theodor Heuss Joachim Gauck Gustav Heinemann Roman Herzog Walter Scheel Richard von Weizsäcker Johannes Rau Horst Köhler Christian Wulff Heinrich Lübke
Richard von Weizsäcker, Elizabeth II and Elizabeth II are the heads of state of Canada, Australia and Germany
Richard von Weizsäcker Elizabeth II Elizabeth II
action union
action filter_type
action find
entity Canada
relation head of state
type common name
action filter_type
action find
entity Australia
relation head of state
type common name
action filter_type
action find
entity Germany
relation head of state
type common name
['Canada', 'head of state', {'concept': 'common name'}] ['Australia', 'head of state', {'concept': 'common name'}] ['Germany', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?c ) { ( resource:Australia ) ( resource:Canada ) } . ?c property:head_of_state ?d }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9682
P417
Q618123
USER
Who has that person as their patron saint ?
(c(Q618123),P417,Q9682)
action filter_type
action find_reverse
entity Q9682
relation P417
type Q618123
[{'concept': 'Q618123'}, 'P417', 'Q9682']
SELECT DISTINCT ?u WHERE { ?u property:P417 resource:Q9682 . ?u rdf:type ontology:Q618123 }
Elizabeth II
action filter_type
action find_reverse
entity Elizabeth II
relation patron saint
type geographical object
[{'concept': 'geographical object'}, 'patron saint', 'Elizabeth II']
SELECT DISTINCT ?u WHERE { ?u property:patron_saint resource:Elizabeth_II . ?u rdf:type ontology:geographical_object }
[]
geographical object
Clarification for simple ques.
Q9682
SYSTEM
Did you mean Elizabeth II ?
Q2567 Q9682 Q9682
(c(Q618123),P417,Q2567) (c(Q618123),P417,Q9682) (c(Q618123),P417,Q9682)
[ANSWER]
[{'concept': 'Q618123'}, 'P417', 'Q2567'] [{'concept': 'Q618123'}, 'P417', 'Q9682'] [{'concept': 'Q618123'}, 'P417', 'Q9682']
SELECT DISTINCT ?u WHERE { ?u property:P417 resource:Q9682 . ?u rdf:type ontology:Q618123 }
Richard von Weizsäcker Elizabeth II Elizabeth II
Did you mean Elizabeth II ?
Elizabeth II
[{'concept': 'geographical object'}, 'patron saint', 'Richard von Weizsäcker'] [{'concept': 'geographical object'}, 'patron saint', 'Elizabeth II'] [{'concept': 'geographical object'}, 'patron saint', 'Elizabeth II']
SELECT DISTINCT ?u WHERE { ?u property:patron_saint resource:Elizabeth_II . ?u rdf:type ontology:geographical_object }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q618123),P417,Q9682)
[{'concept': 'Q618123'}, 'P417', 'Q9682']
[{'concept': 'geographical object'}, 'patron saint', 'Elizabeth II']
[]
Q1347463
SYSTEM
Rugby Football Union
Q1347463
(c(Q618123),P417,Q9682)
action filter_type
action find_reverse
entity Q9682
relation P417
type Q618123
[ANSWER] has that person as their patron saint
[{'concept': 'Q618123'}, 'P417', 'Q9682']
SELECT DISTINCT ?u WHERE { ?u property:P417 resource:Q9682 . ?u rdf:type ontology:Q618123 }
Rugby Football Union
Rugby Football Union has that person as their patron saint
Rugby Football Union
action filter_type
action find_reverse
entity Elizabeth II
relation patron saint
type geographical object
[{'concept': 'geographical object'}, 'patron saint', 'Elizabeth II']
SELECT DISTINCT ?u WHERE { ?u property:patron_saint resource:Elizabeth_II . ?u rdf:type ontology:geographical_object }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1347463 Q209725
P127
Q1076486
USER
Is Twickenham Stadium owned by that geographical object ?
(Q209725,P127,Q1347463)
action is_in
entity Q1347463
action find
entity Q209725
relation P127
['Q209725', 'P127', 'Q1347463']
ASK WHERE { resource:Q209725 property:P127 resource:Q1347463 }
Rugby Football Union Twickenham Stadium
action is_in
entity Rugby Football Union
action find
entity Twickenham Stadium
relation owned by
['Twickenham Stadium', 'owned by', 'Rugby Football Union']
ASK WHERE { resource:Twickenham_Stadium property:owned_by resource:Rugby_Football_Union }
[]
sports venue
SYSTEM
YES
(Q209725,P127,Q1347463)
action is_in
entity Q1347463
action find
entity Q209725
relation P127
[ANSWER]
['Q209725', 'P127', 'Q1347463']
ASK WHERE { resource:Q209725 property:P127 resource:Q1347463 }
Yes
action is_in
entity Rugby Football Union
action find
entity Twickenham Stadium
relation owned by
['Twickenham Stadium', 'owned by', 'Rugby Football Union']
ASK WHERE { resource:Twickenham_Stadium property:owned_by resource:Rugby_Football_Union }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q664
P17
Q1048835 Q55488 Q13406554
USER
Which political territories are less number of railway stations and sport competitions situated in than New Zealand ?
(c(Q55488)|c(Q13406554),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q55488
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q13406554
action count
action filter_multi_types
action find_reverse
entity Q664
relation P17
type Q55488
type Q13406554
[[{'concept': 'Q55488'}, {'concept': 'Q13406554'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?c WHERE { VALUES ( ?g ) { ( ontology:Q13406554 ) ( ontology:Q55488 ) } . ?i rdf:type ?g } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q55488 ) ( ontology:Q13406554 ) } } . ?w property:P17 resource:Q664 } } . FILTER ( ?n < ?m ) }
New Zealand
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type railway station
action find_reverse_tuple_counts
relation country
type political territorial entity
type sport competition
action count
action filter_multi_types
action find_reverse
entity New Zealand
relation country
type railway station
type sport competition
[[{'concept': 'railway station'}, {'concept': 'sport competition'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?c WHERE { VALUES ( ?g ) { ( ontology:sport_competition ) ( ontology:railway_station ) } . ?i rdf:type ?g } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:railway_station ) ( ontology:sport_competition ) } } . ?w property:country resource:New_Zealand } } . FILTER ( ?n < ?m ) }
[]
political territorial entity railway station sport competition
Q5705 Q1000 Q769
SYSTEM
Catalonia, Gabon, Grenada
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q693551 Q13353 Q848383 Q5705 Q13726 Q953068 Q5785 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q55488)|c(Q13406554),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q55488
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q13406554
action count
action filter_multi_types
action find_reverse
entity Q664
relation P17
type Q55488
type Q13406554
[ANSWERS] are less number of railway stations and sport competitions situated in than New Zealand
[[{'concept': 'Q55488'}, {'concept': 'Q13406554'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?c WHERE { VALUES ( ?g ) { ( ontology:Q13406554 ) ( ontology:Q55488 ) } . ?i rdf:type ?g } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q55488 ) ( ontology:Q13406554 ) } } . ?w property:P17 resource:Q664 } } . FILTER ( ?n < ?m ) }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves Landgraviate of Hesse-Darmstadt Montserrat Duchy of Rome Catalonia Albay South-West Africa Cayman Islands Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
Catalonia, Gabon and Grenada are less number of railway stations and sport competitions situated in than New Zealand
Catalonia Gabon Grenada
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type railway station
action find_reverse_tuple_counts
relation country
type political territorial entity
type sport competition
action count
action filter_multi_types
action find_reverse
entity New Zealand
relation country
type railway station
type sport competition
[[{'concept': 'railway station'}, {'concept': 'sport competition'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?c WHERE { VALUES ( ?g ) { ( ontology:sport_competition ) ( ontology:railway_station ) } . ?i rdf:type ?g } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:railway_station ) ( ontology:sport_competition ) } } . ?w property:country resource:New_Zealand } } . FILTER ( ?n < ?m ) }
[]