Simple Question (Direct)
Simple Question
Q465999
P106
Q12737077
USER
What is the profession of Toni Brutscher ?
(Q465999,P106,c(Q12737077))
action filter_type
action find
entity Q465999
relation P106
type Q12737077
['Q465999', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q465999 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Toni Brutscher
action filter_type
action find
entity Toni Brutscher
relation occupation
type occupation
['Toni Brutscher', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Toni_Brutscher property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q13382603
SYSTEM
ski jumper
Q13382603
(Q465999,P106,c(Q12737077))
action filter_type
action find
entity Q465999
relation P106
type Q12737077
The profession of Toni Brutscher is the [ANSWER]
['Q465999', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q465999 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
ski jumper
The profession of Toni Brutscher is the ski jumper
ski jumper
action filter_type
action find
entity Toni Brutscher
relation occupation
type occupation
['Toni Brutscher', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Toni_Brutscher property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q465999
P641
Q212434
USER
What did that person participate in ?
(Q13382603,P641,c(Q212434))
action filter_type
action find
entity Q465999
relation P641
type Q212434
['Q13382603', 'P641', {'concept': 'Q212434'}]
SELECT DISTINCT ?b WHERE { resource:Q465999 property:P641 ?b . ?b rdf:type ontology:Q212434 }
Toni Brutscher
action filter_type
action find
entity Toni Brutscher
relation sport
type Olympic sport
['ski jumper', 'sport', {'concept': 'Olympic sport'}]
SELECT DISTINCT ?b WHERE { resource:Toni_Brutscher property:sport ?b . ?b rdf:type ontology:Olympic_sport }
[]
Olympic sport
Q7718
SYSTEM
ski jumping
Q7718
(Q13382603,P641,c(Q212434))
action filter_type
action find
entity Q465999
relation P641
type Q212434
That person participated in [ANSWER]
['Q13382603', 'P641', {'concept': 'Q212434'}]
SELECT DISTINCT ?b WHERE { resource:Q465999 property:P641 ?b . ?b rdf:type ontology:Q212434 }
ski jumping
That person participated in ski jumping
ski jumping
action filter_type
action find
entity Toni Brutscher
relation sport
type Olympic sport
['ski jumper', 'sport', {'concept': 'Olympic sport'}]
SELECT DISTINCT ?b WHERE { resource:Toni_Brutscher property:sport ?b . ?b rdf:type ontology:Olympic_sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1411634 Q465999
P27
Q1048835
USER
Which political territories do Toni Brutscher or Julie McDonald belong to ?
OR((Q465999,P27,c(Q1048835)), (Q1411634,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q465999
relation P27
action find
entity Q1411634
relation P27
type Q1048835
{'OR': [['Q465999', 'P27', {'concept': 'Q1048835'}], ['Q1411634', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { VALUES ( ?x ) { ( resource:Q465999 ) ( resource:Q1411634 ) } . ?x property:P27 ?m } }
Julie McDonald Toni Brutscher
action filter_type
action union
action find
entity Toni Brutscher
relation country of citizenship
action find
entity Julie McDonald
relation country of citizenship
type political territorial entity
{'OR': [['Toni Brutscher', 'country of citizenship', {'concept': 'political territorial entity'}], ['Julie McDonald', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { VALUES ( ?x ) { ( resource:Toni_Brutscher ) ( resource:Julie_McDonald ) } . ?x property:country_of_citizenship ?m } }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q465999,P27,c(Q1048835)), (Q1411634,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q465999
relation P27
action find
entity Q1411634
relation P27
type Q1048835
Toni Brutscher or Julie McDonald belong to [ANSWERS]
{'OR': [['Q465999', 'P27', {'concept': 'Q1048835'}], ['Q1411634', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { VALUES ( ?x ) { ( resource:Q465999 ) ( resource:Q1411634 ) } . ?x property:P27 ?m } }
Australia Germany
Toni Brutscher or Julie McDonald belong to Australia and Germany
Australia Germany
action filter_type
action union
action find
entity Toni Brutscher
relation country of citizenship
action find
entity Julie McDonald
relation country of citizenship
type political territorial entity
{'OR': [['Toni Brutscher', 'country of citizenship', {'concept': 'political territorial entity'}], ['Julie McDonald', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { VALUES ( ?x ) { ( resource:Toni_Brutscher ) ( resource:Julie_McDonald ) } . ?x property:country_of_citizenship ?m } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1411634
P21
Q290
USER
Which sex does Julie McDonald belong to ?
(Q1411634,P21,c(Q290))
action filter_type
action find
entity Q1411634
relation P21
type Q290
['Q1411634', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1411634 property:P21 ?x . ?x rdf:type ontology:Q290 }
Julie McDonald
action filter_type
action find
entity Julie McDonald
relation gender
type sex
['Julie McDonald', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Julie_McDonald property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1411634,P21,c(Q290))
action filter_type
action find
entity Q1411634
relation P21
type Q290
Julie McDonald belongs to [ANSWER]
['Q1411634', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1411634 property:P21 ?x . ?x rdf:type ontology:Q290 }
female
Julie McDonald belongs to female
female
action filter_type
action find
entity Julie McDonald
relation gender
type sex
['Julie McDonald', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Julie_McDonald property:gender ?x . ?x rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q1048835 Q7725634 Q2088357
USER
Which political territories are the origins of max number of literary works and musical ensembles ?
(c(Q7725634)|c(Q2088357),P495,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
[[{'concept': 'Q7725634'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?a WHERE { VALUES ( ?i ) { ( ontology:Q7725634 ) ( ontology:Q2088357 ) } . ?v rdf:type ?i } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) ?k WHERE { VALUES ( ?j ) { ( ontology:Q7725634 ) ( ontology:Q2088357 ) } . ?s rdf:type ?j } GROUP BY ?k } . FILTER ( ?p = ?z ) }
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
[[{'concept': 'literary work'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?a WHERE { VALUES ( ?i ) { ( ontology:literary_work ) ( ontology:musical_ensemble ) } . ?v rdf:type ?i } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) ?k WHERE { VALUES ( ?j ) { ( ontology:literary_work ) ( ontology:musical_ensemble ) } . ?s rdf:type ?j } GROUP BY ?k } . FILTER ( ?p = ?z ) }
[]
political territorial entity literary work musical ensemble
Q16
SYSTEM
Canada
Q16
(c(Q7725634)|c(Q2088357),P495,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
[ANSWER] is the origins of max number of literary works and musical ensembles
[[{'concept': 'Q7725634'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?a WHERE { VALUES ( ?i ) { ( ontology:Q7725634 ) ( ontology:Q2088357 ) } . ?v rdf:type ?i } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) ?k WHERE { VALUES ( ?j ) { ( ontology:Q7725634 ) ( ontology:Q2088357 ) } . ?s rdf:type ?j } GROUP BY ?k } . FILTER ( ?p = ?z ) }
Canada
Canada is the origins of max number of literary works and musical ensembles
Canada
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
[[{'concept': 'literary work'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?a WHERE { VALUES ( ?i ) { ( ontology:literary_work ) ( ontology:musical_ensemble ) } . ?v rdf:type ?i } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) ?k WHERE { VALUES ( ?j ) { ( ontology:literary_work ) ( ontology:musical_ensemble ) } . ?s rdf:type ?j } GROUP BY ?k } . FILTER ( ?p = ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q183
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with less number of political territories than Germany ?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?t < ?y ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?t ) WHERE { ?u property:P530 ?x . ?u rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?u } }
Germany
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?t < ?y ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?t ) WHERE { ?u property:diplomatic_relation ?x . ?u rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?u } }
[]
political territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with less number of political territories than Germany
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?t < ?y ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?t ) WHERE { ?u property:P530 ?x . ?u rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?u } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with less number of political territories than Germany
Denmark Canada Austria
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?t < ?y ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?t ) WHERE { ?u property:diplomatic_relation ?x . ?u rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?u } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q35
P530
Q1048835 Q1048835
USER
And also tell me about Denmark?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?v ) WHERE { ?f property:P530 ?y . ?y rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Q35 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?v < ?d ) }
Denmark
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?v ) WHERE { ?f property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Denmark property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?v < ?d ) }
[]
political territorial entity political territorial entity
Q40 Q1000 Q769
SYSTEM
Austria, Gabon, Grenada
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?v ) WHERE { ?f property:P530 ?y . ?y rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Q35 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?v < ?d ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Austria Gabon Grenada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?v ) WHERE { ?f property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Denmark property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?v < ?d ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with max number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?h ) { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?f ) WHERE { ?n property:P530 ?s . ?n rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?n } } . FILTER ( ?b = ?h ) . { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?b ) WHERE { ?y property:P530 ?t . ?y rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?y } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?h ) { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?f ) WHERE { ?n property:diplomatic_relation ?s . ?n rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?n } } . FILTER ( ?b = ?h ) . { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?b ) WHERE { ?y property:diplomatic_relation ?t . ?y rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?y } }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have diplomatic relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?h ) { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?f ) WHERE { ?n property:P530 ?s . ?n rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?n } } . FILTER ( ?b = ?h ) . { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?b ) WHERE { ?y property:P530 ?t . ?y rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?y } }
Australia
Australia have diplomatic relations with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?h ) { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?f ) WHERE { ?n property:diplomatic_relation ?s . ?n rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?n } } . FILTER ( ?b = ?h ) . { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?b ) WHERE { ?y property:diplomatic_relation ?t . ?y rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?y } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q1048835 Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with min number of political territories and administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?l WHERE { VALUES ( ?t ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?m rdf:type ?t } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?g WHERE { VALUES ( ?j ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?p rdf:type ?j } GROUP BY ?g } . FILTER ( ?h = ?z ) }
action argmin
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?l WHERE { VALUES ( ?t ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?m rdf:type ?t } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?g WHERE { VALUES ( ?j ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?p rdf:type ?j } GROUP BY ?g } . FILTER ( ?h = ?z ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relationships with min number of political territories and administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?l WHERE { VALUES ( ?t ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?m rdf:type ?t } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?g WHERE { VALUES ( ?j ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?p rdf:type ?j } GROUP BY ?g } . FILTER ( ?h = ?z ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have diplomatic relationships with min number of political territories and administrative territories
Solomon Islands Papua New Guinea
action argmin
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?l WHERE { VALUES ( ?t ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?m rdf:type ?t } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?g WHERE { VALUES ( ?j ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?p rdf:type ?j } GROUP BY ?g } . FILTER ( ?h = ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories holds diplomatic relationship with exactly 3 political territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?w ) WHERE { ?m property:P530 ?p . ?m rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?w = 3 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?w ) WHERE { ?m property:diplomatic_relation ?p . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?w = 3 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
32
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?w ) WHERE { ?m property:P530 ?p . ?m rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?w = 3 ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
32
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?w ) WHERE { ?m property:diplomatic_relation ?p . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?w = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P69
Q502895
USER
Who is an alumni of Austria ?
(c(Q502895),P69,Q40)
action filter_type
action find_reverse
entity Q40
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q40']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P69 resource:Q40 }
Austria
action filter_type
action find_reverse
entity Austria
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Austria']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:educated_at resource:Austria }
[]
common name
Q380748
SYSTEM
Peter Freund
Q380748
(c(Q502895),P69,Q40)
action filter_type
action find_reverse
entity Q40
relation P69
type Q502895
An alumni of Austria is the [ANSWER]
[{'concept': 'Q502895'}, 'P69', 'Q40']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P69 resource:Q40 }
Peter Freund
An alumni of Austria is the Peter Freund
Peter Freund
action filter_type
action find_reverse
entity Austria
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Austria']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:educated_at resource:Austria }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P276
Q15275719
USER
Which recurring event is situated at Austria ?
(c(Q15275719),P276,Q40)
action filter_type
action find_reverse
entity Q40
relation P276
type Q15275719
[{'concept': 'Q15275719'}, 'P276', 'Q40']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15275719 . ?y property:P276 resource:Q40 }
Austria
action filter_type
action find_reverse
entity Austria
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Austria']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:recurring_event . ?y property:location resource:Austria }
[]
recurring event
Q298553
SYSTEM
Tour of Austria
Q298553
(c(Q15275719),P276,Q40)
action filter_type
action find_reverse
entity Q40
relation P276
type Q15275719
[ANSWER] is situated at Austria
[{'concept': 'Q15275719'}, 'P276', 'Q40']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15275719 . ?y property:P276 resource:Q40 }
Tour of Austria
Tour of Austria is situated at Austria
Tour of Austria
action filter_type
action find_reverse
entity Austria
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Austria']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:recurring_event . ?y property:location resource:Austria }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P163
Q14660
USER
What is associated with Austria ?
(Q40,P163,c(Q14660))
action filter_type
action find
entity Q40
relation P163
type Q14660
['Q40', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?t WHERE { resource:Q40 property:P163 ?t . ?t rdf:type ontology:Q14660 }
Austria
action filter_type
action find
entity Austria
relation flag
type flag
['Austria', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?t WHERE { resource:Austria property:flag ?t . ?t rdf:type ontology:flag }
[]
flag
Q46835
SYSTEM
flag of Austria
Q46835
(Q40,P163,c(Q14660))
action filter_type
action find
entity Q40
relation P163
type Q14660
Austria [ANSWER] is associated with Austria
['Q40', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?t WHERE { resource:Q40 property:P163 ?t . ?t rdf:type ontology:Q14660 }
flag of Austria
Austria flag of Austria is associated with Austria
flag of Austria
action filter_type
action find
entity Austria
relation flag
type flag
['Austria', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?t WHERE { resource:Austria property:flag ?t . ?t rdf:type ontology:flag }
[]