Simple Question (Direct)
Simple Question
Q7819167
P641
Q349
USER
Which sport did Tommy Allison participate in ?
(Q7819167,P641,c(Q349))
action filter_type
action find
entity Q7819167
relation P641
type Q349
['Q7819167', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q349 . resource:Q7819167 property:P641 ?l }
Tommy Allison
action filter_type
action find
entity Tommy Allison
relation sport
type sport
['Tommy Allison', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sport . resource:Tommy_Allison property:sport ?l }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7819167,P641,c(Q349))
action filter_type
action find
entity Q7819167
relation P641
type Q349
Tommy Allison participated in [ANSWER]
['Q7819167', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q349 . resource:Q7819167 property:P641 ?l }
association football
Tommy Allison participated in association football
association football
action filter_type
action find
entity Tommy Allison
relation sport
type sport
['Tommy Allison', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sport . resource:Tommy_Allison property:sport ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7819167
P19
Q56061
USER
Which administrative territory was Tommy Allison born at ?
(Q7819167,P19,c(Q56061))
action filter_type
action find
entity Q7819167
relation P19
type Q56061
['Q7819167', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q7819167 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Tommy Allison
action filter_type
action find
entity Tommy Allison
relation place of birth
type administrative territorial entity
['Tommy Allison', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Tommy_Allison property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q23436
SYSTEM
Edinburgh
Q23436
(Q7819167,P19,c(Q56061))
action filter_type
action find
entity Q7819167
relation P19
type Q56061
Tommy Allison was born in [ANSWER]
['Q7819167', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q7819167 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Edinburgh
Tommy Allison was born in Edinburgh
Edinburgh
action filter_type
action find
entity Tommy Allison
relation place of birth
type administrative territorial entity
['Tommy Allison', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Tommy_Allison property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16994872
Q56061
USER
And how about John Ince?
(Q16994872,P19,c(Q56061))
action filter_type
action find
entity Q16994872
relation P19
type Q56061
['Q16994872', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q16994872 property:P19 ?a . ?a rdf:type ontology:Q56061 }
John Ince
action filter_type
action find
entity John Ince
relation place of birth
type administrative territorial entity
['John Ince', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:John_Ince property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q736785
SYSTEM
Morpeth
Q736785
(Q16994872,P19,c(Q56061))
action filter_type
action find
entity Q16994872
relation P19
type Q56061
[ANSWER]
['Q16994872', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q16994872 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Morpeth
Morpeth
action filter_type
action find
entity John Ince
relation place of birth
type administrative territorial entity
['John Ince', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:John_Ince property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12004208
P106
Q12737077
USER
Which occupation has Svein Bryn as his/her 's career ?
(Q12004208,P106,c(Q12737077))
action filter_type
action find
entity Q12004208
relation P106
type Q12737077
['Q12004208', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q12004208 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Svein Bryn
action filter_type
action find
entity Svein Bryn
relation occupation
type occupation
['Svein Bryn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Svein_Bryn property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(Q12004208,P106,c(Q12737077))
action filter_type
action find
entity Q12004208
relation P106
type Q12737077
The [ANSWER] has Svein Bryn as his/her 's career
['Q12004208', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q12004208 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
journalist
The journalist has Svein Bryn as his/her 's career
journalist
action filter_type
action find
entity Svein Bryn
relation occupation
type occupation
['Svein Bryn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Svein_Bryn property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12004208
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q1930187,P27,c(Q15617994))
action filter_type
action find
entity Q12004208
relation P27
type Q15617994
['Q1930187', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q12004208 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Svein Bryn
action filter_type
action find
entity Svein Bryn
relation country of citizenship
type designation for an administrative territorial entity
['journalist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Svein_Bryn property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q1930187,P27,c(Q15617994))
action filter_type
action find
entity Q12004208
relation P27
type Q15617994
That person belongs to [ANSWER]
['Q1930187', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q12004208 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Norway
That person belongs to Norway
Norway
action filter_type
action find
entity Svein Bryn
relation country of citizenship
type designation for an administrative territorial entity
['journalist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Svein_Bryn property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q20 Q22105 Q38
P530
Q15617994
USER
Does that administrative territory have ambassadorial relations with Borgolavezzaro and Italy ?
(Q20,P530,Q22105) (Q20,P530,Q38)
action is_in
entity Q20
action intersection
action find_reverse
entity Q22105
relation P530
action find_reverse
entity Q38
relation P530
['Q20', 'P530', 'Q22105'] ['Q20', 'P530', 'Q38']
ASK WHERE { resource:Q20 property:P530 resource:Q22105 . resource:Q20 property:P530 resource:Q38 }
Norway Borgolavezzaro Italy
action is_in
entity Norway
action intersection
action find_reverse
entity Borgolavezzaro
relation diplomatic relation
action find_reverse
entity Italy
relation diplomatic relation
['Norway', 'diplomatic relation', 'Borgolavezzaro'] ['Norway', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Norway property:diplomatic_relation resource:Borgolavezzaro . resource:Norway property:diplomatic_relation resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q20,P530,Q22105) (Q20,P530,Q38)
action is_in
entity Q20
action intersection
action find_reverse
entity Q22105
relation P530
action find_reverse
entity Q38
relation P530
[ANSWER]
['Q20', 'P530', 'Q22105'] ['Q20', 'P530', 'Q38']
ASK WHERE { resource:Q20 property:P530 resource:Q22105 . resource:Q20 property:P530 resource:Q38 }
NO and YES respectively
action is_in
entity Norway
action intersection
action find_reverse
entity Borgolavezzaro
relation diplomatic relation
action find_reverse
entity Italy
relation diplomatic relation
['Norway', 'diplomatic relation', 'Borgolavezzaro'] ['Norway', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Norway property:diplomatic_relation resource:Borgolavezzaro . resource:Norway property:diplomatic_relation resource:Italy }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q60968
P3091
Q502895 Q3745054 Q502895
USER
How many people utilize approximately the same number of people and horse breeds as steed as Ludger Beerbaum ?
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action count
action approx
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action count
action filter_multi_types
action find
entity Q60968
relation P3091
type Q502895
type Q3745054
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?y ) WHERE { { ?q property:P3091 ?h . ?q rdf:type ontology:Q502895 . ?h rdf:type ontology:Q502895 } UNION { ?q property:P3091 ?h . ?h rdf:type ontology:Q3745054 . ?q rdf:type ontology:Q502895 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q60968 property:P3091 ?k . { { ?k rdf:type ontology:Q3745054 } UNION { ?k rdf:type ontology:Q502895 } } } } . FILTER ( ?y = ?g ) }
Ludger Beerbaum
action count
action approx
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
action count
action filter_multi_types
action find
entity Ludger Beerbaum
relation mount
type common name
type horse breed
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?y ) WHERE { { ?q property:mount ?h . ?q rdf:type ontology:common_name . ?h rdf:type ontology:common_name } UNION { ?q property:mount ?h . ?h rdf:type ontology:horse_breed . ?q rdf:type ontology:common_name } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Ludger_Beerbaum property:mount ?k . { { ?k rdf:type ontology:horse_breed } UNION { ?k rdf:type ontology:common_name } } } } . FILTER ( ?y = ?g ) }
[]
common name horse breed common name
SYSTEM
19
Q69084 Q358777 Q235022 Q3087038 Q14912896 Q3591240 Q3169911 Q952736 Q2287454 Q1617291 Q60968 Q1277320 Q6369922 Q1985582 Q1930899 Q175930 Q673136 Q62253 Q3308301
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action count
action approx
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action count
action filter_multi_types
action find
entity Q60968
relation P3091
type Q502895
type Q3745054
[ANSWER]
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?y ) WHERE { { ?q property:P3091 ?h . ?q rdf:type ontology:Q502895 . ?h rdf:type ontology:Q502895 } UNION { ?q property:P3091 ?h . ?h rdf:type ontology:Q3745054 . ?q rdf:type ontology:Q502895 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q60968 property:P3091 ?k . { { ?k rdf:type ontology:Q3745054 } UNION { ?k rdf:type ontology:Q502895 } } } } . FILTER ( ?y = ?g ) }
Paul Schockemöhle Yves Saint-Martin Anky van Grunsven Freddy Head Bassem Hassan Mohammed Éric Levallois Jean-René Gougeon Nelson Pessoa Simon Delestre Pierre Durand, Jr. Ludger Beerbaum Roger-Yves Bost Karen O'Connor Nick Skelton Michel Robert Ian Millar Steve Guerdat Meredith Michaels-Beerbaum Michael Kinane
19
action count
action approx
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
action count
action filter_multi_types
action find
entity Ludger Beerbaum
relation mount
type common name
type horse breed
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?y ) WHERE { { ?q property:mount ?h . ?q rdf:type ontology:common_name . ?h rdf:type ontology:common_name } UNION { ?q property:mount ?h . ?h rdf:type ontology:horse_breed . ?q rdf:type ontology:common_name } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Ludger_Beerbaum property:mount ?k . { { ?k rdf:type ontology:horse_breed } UNION { ?k rdf:type ontology:common_name } } } } . FILTER ( ?y = ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q15972334
P3091
Q502895 Q3745054 Q502895
USER
And how about Natasha Baker?
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action count
action approx
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action count
action filter_multi_types
action find
entity Q15972334
relation P3091
type Q502895
type Q3745054
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q3745054 } } . resource:Q15972334 property:P3091 ?i } } . FILTER ( ?l = ?q ) }
Natasha Baker
action count
action approx
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
action count
action filter_multi_types
action find
entity Natasha Baker
relation mount
type common name
type horse breed
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:common_name ) ( ontology:horse_breed ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:common_name } UNION { ?i rdf:type ontology:horse_breed } } . resource:Natasha_Baker property:mount ?i } } . FILTER ( ?l = ?q ) }
[]
common name horse breed common name
SYSTEM
88
Q2831786 Q2964761 Q2643622 Q1682742 Q451395 Q1311486 Q682476 Q1088130 Q527657 Q364671 Q3089727 Q919677 Q16208274 Q3400624 Q15782408 Q947032 Q3428317 Q131691 Q17350580 Q438197 Q2396962 Q19630218 Q3106094 Q958372 Q319522 Q78028 Q7647583 Q823503 Q147663 Q513487 Q494315 Q377345 Q5247967 Q8409 Q2831635 Q1710812 Q467676 Q1545318 Q34836 Q238769 Q745510 Q318626 Q608440 Q19839389 Q3134506 Q926771 Q3309932 Q517 Q1351428 Q62177 Q458399 Q2903241 Q529497 Q3380679 Q1337633 Q953867 Q364659 Q19880092 Q1119157 Q1581746 Q72502 Q25906137 Q6765126 Q15972334 Q6148833 Q1391424 Q2094373 Q5079900 Q1342822 Q76246 Q1691413 Q270476 Q272533 Q3074167 Q449891 Q1292304 Q1343527 Q690536 Q43958 Q3428878 Q886901 Q1261810 Q77560 Q3524341 Q3591324 Q9682 Q1633084 Q2420937
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action count
action approx
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action count
action filter_multi_types
action find
entity Q15972334
relation P3091
type Q502895
type Q3745054
[ANSWER]
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q3745054 } } . resource:Q15972334 property:P3091 ?i } } . FILTER ( ?l = ?q ) }
Alberto Larraguibel Chris Kappler Alexandra Ledermann Janika Sprunger Fritz Thiedemann Mario Deslauriers Paul Estermann Maxime Guyon Margit Otto-Crépin Jean Teulère Frédéric Cottier Nicolas Touzaint Barbara Minneci Sir Harry Llewellyn, 3rd Baronet Ali Al Rumaihi Pierre Jonquères d'Oriola Torrance Fleischmann Arthur Wellesley, 1st Duke of Wellington Fernand Leredde Helen Langehanenberg Ron Turcotte Michel-Marcel Gougeon Gilles Bertrán de Balanda Piet Raijmakers Ulrich Kirchhoff Marco Kutscher Susan Blinks Uwe Sauer Zara Phillips Linda Algotsson Gerco Schröder Lester Piggott Debbie McDonald Alexander the Great Albert Voorn Richard Spooner Reiner Klimke Greg Best Ulysses S. Grant Isabell Werth Ludo Philippaerts Lars Nieberg John Whitaker Abdelkebir Ouaddar Hervé Godignon Earl Foster Thomson Michel Hécart Napoleon Eric Lamaze Hans Günter Winkler Laura Bechtolsheimer Bill Hartack Edwina Tops-Alexander Philippe Rozier Scott Brash Conrad Homfeld Cédric Lyard Lendon Gray Frankie Dettori Hans Peter Minderhoud Otto Becker Astier Nicolas Marion Coakes Natasha Baker Jan Ebeling Jos Lansink Rolf-Göran Bengtsson Charles Kurtsinger William Fox-Pitt Marcus Ehning Joseph Fargis Sara Algotsson Ostholt Charlotte Dujardin Florian Angot Beezie Madden Edward Gal Karin Rehbein Pius Schwizer El Cid Reynald Angot Blyth Tait Eddie Macken Michael Jung Thierry Jarnet Éric Raffin Elizabeth II Hubert Bourdy Thierry Pomel
88
action count
action approx
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
action count
action filter_multi_types
action find
entity Natasha Baker
relation mount
type common name
type horse breed
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:common_name ) ( ontology:horse_breed ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:common_name } UNION { ?i rdf:type ontology:horse_breed } } . resource:Natasha_Baker property:mount ?i } } . FILTER ( ?l = ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q20 Q40
P530
Q1048835
USER
How many political territories have diplomatic relations with Norway and Austria ?
(Q20,P530,c(Q1048835)) (Q40,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q20
relation P530
type Q1048835
action filter_type
action find
entity Q40
relation P530
type Q1048835
['Q20', 'P530', {'concept': 'Q1048835'}] ['Q40', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q20 property:P530 ?d . ?d rdf:type ontology:Q1048835 . resource:Q40 property:P530 ?d . ?d rdf:type ontology:Q1048835 }
Norway Austria
action count
action intersection
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Austria', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Norway property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity . resource:Austria property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q20,P530,c(Q1048835)) (Q40,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q20
relation P530
type Q1048835
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWER]
['Q20', 'P530', {'concept': 'Q1048835'}] ['Q40', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q20 property:P530 ?d . ?d rdf:type ontology:Q1048835 . resource:Q40 property:P530 ?d . ?d rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Austria', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Norway property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity . resource:Austria property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q34770 Q5962346 Q15617994
USER
How many administrative territories are atmost 2 languages or classification schemes the official language of ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action atmost
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 2
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?m ) WHERE { { ?c property:P37 ?f . ?c rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q34770 } UNION { ?c property:P37 ?f . ?c rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q5962346 } } GROUP BY ?c } . FILTER ( ?m <= 2 ) }
action count
action atmost
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?m ) WHERE { { ?c property:official_language ?f . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:language } UNION { ?c property:official_language ?f . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:classification_scheme } } GROUP BY ?c } . FILTER ( ?m <= 2 ) }
[]
language classification scheme designation for an administrative territorial entity
SYSTEM
216
Q805 Q804 Q399 Q801 Q800 Q473259 Q709 Q398 Q668 Q414 Q142 Q1039 Q21671144 Q1948 Q32 Q12536 Q262 Q148 Q783 Q784 Q265 Q30 Q37 Q493428 Q16006 Q712 Q711 Q710 Q717 Q837 Q2003 Q252 Q2068764 Q21850324 Q403 Q657 Q258 Q1979 Q45 Q159 Q43 Q41 Q155 Q792 Q673813 Q790 Q4628 Q796 Q794 Q954 Q953 Q669945 Q884 Q958 Q881 Q503181 Q986 Q219 Q826 Q247613 Q241 Q242 Q244 Q1974 Q811 Q603392 Q53381 Q33 Q921 Q31 Q101526 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q165934 Q423 Q889 Q851 Q733 Q29999 Q854 Q734 Q819 Q253445 Q424 Q55 Q730 Q1013 Q236 Q795587 Q230 Q232 Q693658 Q145 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q29 Q21853467 Q1049 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q1904 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q1050 Q17 Q1989 Q686312 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q59118 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q243220 Q683 Q34020 Q686 Q836 Q760 Q574 Q637451 Q874 Q3365904 Q79 Q77 Q858 Q199688 Q878 Q774 Q948 Q817 Q810 Q770 Q813 Q1014 Q1016 Q1011 Q945 Q678 Q8575586 Q21848848 Q233 Q672 Q176 Q61698 Q822 Q1952 Q863 Q2023 Q869 Q1230929
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action atmost
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?m ) WHERE { { ?c property:P37 ?f . ?c rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q34770 } UNION { ?c property:P37 ?f . ?c rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q5962346 } } GROUP BY ?c } . FILTER ( ?m <= 2 ) }
Yemen Panama Armenia Israel Costa Rica Ammerthal Marshall Islands Bahrain India Argentina France Sao Tomé and Príncipe Mezhetchina Manitoba Luxembourg Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan United States of America Lithuania Mistretta Goch Fiji Mongolia Kiribati Venezuela Nepal Newfoundland and Labrador Indonesia Archa Darugha Gireyevo Serbia Chad South Africa Prince Edward Island Portugal Russia Turkey Greece Brazil El Salvador Euratsfeld Haiti Faroe Islands Iraq Iran Zimbabwe Zambia Vorau South Korea South Sudan Vietnam Herzberg am Harz Eritrea Bulgaria Maldives Bernese Jura Cuba Belize Barbados British Columbia Nicaragua Schönwalde Tolmezzo Finland Brunei Belgium Rovetta Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Colombia Bokensdorf North Korea Afghanistan Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Kolbermoor Cambodia Netherlands Suriname Lesotho Montenegro Escuintla Georgia Kazakhstan Izabal Department United Kingdom San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary Spain Romanovo Sudan Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Ontario Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Swaziland Japan Saskatchewan Duchy of Amalfi Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Aappilattoq Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Côte d'Ivoire Republic of the Congo Comoros Rocca di Cave Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Uruguay Syria Almohad United Arab Emirates Guatemala Tunisia Kuwait Jordan Friesland Kyrgyzstan Liberia Libya Cape Verde Togo Tonga Umayyad Caliphate Lyskovo Malta Tuvalu Quebec Büsingen Lebanon Nova Scotia Tajikistan Nunavut Thailand Kesklinn
216
action count
action atmost
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?m ) WHERE { { ?c property:official_language ?f . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:language } UNION { ?c property:official_language ?f . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:classification_scheme } } GROUP BY ?c } . FILTER ( ?m <= 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P1001
Q12737077
USER
Which occupations apply to jurisdiction over Norway ?
(c(Q12737077),P1001,Q20)
action filter_type
action find_reverse
entity Q20
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q20']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . ?f property:P1001 resource:Q20 }
Norway
action filter_type
action find_reverse
entity Norway
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Norway']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . ?f property:applies_to_jurisdiction resource:Norway }
[]
occupation
Q18018541 Q1225156 Q9045502
SYSTEM
Foreign Minister of Norway, Minister of Defence, member of the Parliament of Norway
Q6866276 Q1225156 Q9045502 Q4579440 Q3436588 Q3734685 Q1769706 Q19226277 Q6866238 Q16147743 Q3437006 Q3356730 Q4574171 Q6514745 Q14436783 Q11992117 Q6866170 Q18713976 Q18018541 Q5588796 Q6866085 Q1294765 Q2334076 Q5097029 Q19157155
(c(Q12737077),P1001,Q20)
action filter_type
action find_reverse
entity Q20
relation P1001
type Q12737077
The [ANSWERS] apply to jurisdiction over Norway
[{'concept': 'Q12737077'}, 'P1001', 'Q20']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . ?f property:P1001 resource:Q20 }
Minister of Petroleum and Energy Minister of Defence member of the Parliament of Norway State Conciliator of Norway Deputy to the Prime Minister of Norway Minister of Finance of Norway Minister of Justice and Public Security Attorney General of Norway Minister of Labour and Social Inclusion State Secretary Minister of Local Government and Regional Development Minister of Climate and the Environment Minister of International Development Minister of Transport and Communications Minister of Children, Equality and Social Inclusion Minister of Agriculture and Food (Norway) Minister of Health and Care Services deputy member of the Parliament of Norway Foreign Minister of Norway Government Director of Personnel Minister of Culture monarch of Norway Prime Minister of Norway Chief of Defence of Norway President of Parliament of Norway
The Foreign Minister of Norway, Minister of Defence and member of the Parliament of Norway apply to jurisdiction over Norway
Foreign Minister of Norway Minister of Defence member of the Parliament of Norway
action filter_type
action find_reverse
entity Norway
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Norway']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . ?f property:applies_to_jurisdiction resource:Norway }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P915
Q15416
USER
Which television program was filmed at Norway ?
(c(Q15416),P915,Q20)
action filter_type
action find_reverse
entity Q20
relation P915
type Q15416
[{'concept': 'Q15416'}, 'P915', 'Q20']
SELECT DISTINCT ?p WHERE { ?p property:P915 resource:Q20 . ?p rdf:type ontology:Q15416 }
Norway
action filter_type
action find_reverse
entity Norway
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Norway']
SELECT DISTINCT ?p WHERE { ?p property:filming_location resource:Norway . ?p rdf:type ontology:television_program }
[]
television program
Q1640465
SYSTEM
71 Degrees North
Q1640465
(c(Q15416),P915,Q20)
action filter_type
action find_reverse
entity Q20
relation P915
type Q15416
[ANSWER] was filmed at Norway
[{'concept': 'Q15416'}, 'P915', 'Q20']
SELECT DISTINCT ?p WHERE { ?p property:P915 resource:Q20 . ?p rdf:type ontology:Q15416 }
71 Degrees North
71 Degrees North was filmed at Norway
71 Degrees North
action filter_type
action find_reverse
entity Norway
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Norway']
SELECT DISTINCT ?p WHERE { ?p property:filming_location resource:Norway . ?p rdf:type ontology:television_program }
[]