Simple Question (Direct)
Simple Question
Q2036103
P21
Q290
USER
What is the sex of Artur Karnoza ?
(Q2036103,P21,c(Q290))
action filter_type
action find
entity Q2036103
relation P21
type Q290
['Q2036103', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q2036103 property:P21 ?q . ?q rdf:type ontology:Q290 }
Artur Karnoza
action filter_type
action find
entity Artur Karnoza
relation gender
type sex
['Artur Karnoza', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Artur_Karnoza property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2036103,P21,c(Q290))
action filter_type
action find
entity Q2036103
relation P21
type Q290
The sex of Artur Karnoza is the [ANSWER]
['Q2036103', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q2036103 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of Artur Karnoza is the male
male
action filter_type
action find
entity Artur Karnoza
relation gender
type sex
['Artur Karnoza', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Artur_Karnoza property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2036103
P27
Q15617994
USER
Which administrative territory does Artur Karnoza belong to ?
(Q2036103,P27,c(Q15617994))
action filter_type
action find
entity Q2036103
relation P27
type Q15617994
['Q2036103', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q2036103 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Artur Karnoza
action filter_type
action find
entity Artur Karnoza
relation country of citizenship
type designation for an administrative territorial entity
['Artur Karnoza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Artur_Karnoza property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q212
SYSTEM
Ukraine
Q212
(Q2036103,P27,c(Q15617994))
action filter_type
action find
entity Q2036103
relation P27
type Q15617994
Artur Karnoza belongs to [ANSWER]
['Q2036103', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q2036103 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Ukraine
Artur Karnoza belongs to Ukraine
Ukraine
action filter_type
action find
entity Artur Karnoza
relation country of citizenship
type designation for an administrative territorial entity
['Artur Karnoza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Artur_Karnoza property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7080312
Q15617994
USER
And how about Ogwyn Davies?
(Q7080312,P27,c(Q15617994))
action filter_type
action find
entity Q7080312
relation P27
type Q15617994
['Q7080312', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q7080312 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Ogwyn Davies
action filter_type
action find
entity Ogwyn Davies
relation country of citizenship
type designation for an administrative territorial entity
['Ogwyn Davies', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Ogwyn_Davies property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7080312,P27,c(Q15617994))
action filter_type
action find
entity Q7080312
relation P27
type Q15617994
[ANSWER]
['Q7080312', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q7080312 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Ogwyn Davies
relation country of citizenship
type designation for an administrative territorial entity
['Ogwyn Davies', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Ogwyn_Davies property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with atleast 47 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 47
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?y ) WHERE { ?e property:P530 ?m . ?e rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?y >= 47 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 47
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?y ) WHERE { ?e property:diplomatic_relation ?m . ?e rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?y >= 47 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 47
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?y ) WHERE { ?e property:P530 ?m . ?e rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?y >= 47 ) }
Germany Australia
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 47
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?y ) WHERE { ?e property:diplomatic_relation ?m . ?e rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?y >= 47 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2036103
P641
Q349
USER
Which sport was Artur Karnoza a part of ?
(Q2036103,P641,c(Q349))
action filter_type
action find
entity Q2036103
relation P641
type Q349
['Q2036103', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q2036103 property:P641 ?k . ?k rdf:type ontology:Q349 }
Artur Karnoza
action filter_type
action find
entity Artur Karnoza
relation sport
type sport
['Artur Karnoza', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Artur_Karnoza property:sport ?k . ?k rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q2036103,P641,c(Q349))
action filter_type
action find
entity Q2036103
relation P641
type Q349
Artur Karnoza was an [ANSWER]
['Q2036103', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q2036103 property:P641 ?k . ?k rdf:type ontology:Q349 }
association football
Artur Karnoza was an association football
association football
action filter_type
action find
entity Artur Karnoza
relation sport
type sport
['Artur Karnoza', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Artur_Karnoza property:sport ?k . ?k rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4357887 Q2036103
P19
Q486972
USER
Which human settlements are the birthplace of Artur Karnoza or Julie Ann Taylor ?
OR((Q2036103,P19,c(Q486972)), (Q4357887,P19,c(Q486972)))
action filter_type
action union
action find
entity Q2036103
relation P19
action find
entity Q4357887
relation P19
type Q486972
{'OR': [['Q2036103', 'P19', {'concept': 'Q486972'}], ['Q4357887', 'P19', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?c ) { ( resource:Q2036103 ) ( resource:Q4357887 ) } . ?c property:P19 ?u } . ?u rdf:type ontology:Q486972 }
Julie Ann Taylor Artur Karnoza
action filter_type
action union
action find
entity Artur Karnoza
relation place of birth
action find
entity Julie Ann Taylor
relation place of birth
type human settlement
{'OR': [['Artur Karnoza', 'place of birth', {'concept': 'human settlement'}], ['Julie Ann Taylor', 'place of birth', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?c ) { ( resource:Artur_Karnoza ) ( resource:Julie_Ann_Taylor ) } . ?c property:place_of_birth ?u } . ?u rdf:type ontology:human_settlement }
[]
human settlement
Q186160 Q48256
SYSTEM
Fort Irwin National Training Center, Dnipro
Q186160 Q48256
OR((Q2036103,P19,c(Q486972)), (Q4357887,P19,c(Q486972)))
action filter_type
action union
action find
entity Q2036103
relation P19
action find
entity Q4357887
relation P19
type Q486972
[ANSWERS] are the birthplace of Artur Karnoza or Julie Ann Taylor
{'OR': [['Q2036103', 'P19', {'concept': 'Q486972'}], ['Q4357887', 'P19', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?c ) { ( resource:Q2036103 ) ( resource:Q4357887 ) } . ?c property:P19 ?u } . ?u rdf:type ontology:Q486972 }
Fort Irwin National Training Center Dnipro
Fort Irwin National Training Center and Dnipro are the birthplace of Artur Karnoza or Julie Ann Taylor
Fort Irwin National Training Center Dnipro
action filter_type
action union
action find
entity Artur Karnoza
relation place of birth
action find
entity Julie Ann Taylor
relation place of birth
type human settlement
{'OR': [['Artur Karnoza', 'place of birth', {'concept': 'human settlement'}], ['Julie Ann Taylor', 'place of birth', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?c ) { ( resource:Artur_Karnoza ) ( resource:Julie_Ann_Taylor ) } . ?c property:place_of_birth ?u } . ?u rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P190
Q486972 Q13220204
USER
Which administrative country subdivisions are a sister city of max number of human settlements ?
(c(Q13220204),P190,c(Q486972))
action argmax
action find_tuple_counts
relation P190
type Q13220204
type Q486972
[{'concept': 'Q13220204'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?y ) WHERE { ?q property:P190 ?e . ?q rdf:type ontology:Q13220204 . ?e rdf:type ontology:Q486972 } GROUP BY ?q } } . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?f ) WHERE { ?p property:P190 ?t . ?p rdf:type ontology:Q13220204 . ?t rdf:type ontology:Q486972 } GROUP BY ?p } . FILTER ( ?f = ?g ) }
action argmax
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type human settlement
[{'concept': 'second-level administrative country subdivision'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?y ) WHERE { ?q property:sister_city ?e . ?q rdf:type ontology:second-level_administrative_country_subdivision . ?e rdf:type ontology:human_settlement } GROUP BY ?q } } . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?f ) WHERE { ?p property:sister_city ?t . ?p rdf:type ontology:second-level_administrative_country_subdivision . ?t rdf:type ontology:human_settlement } GROUP BY ?p } . FILTER ( ?f = ?g ) }
[]
human settlement second-level administrative country subdivision
Q156739
SYSTEM
Rivne
Q156739
(c(Q13220204),P190,c(Q486972))
action argmax
action find_tuple_counts
relation P190
type Q13220204
type Q486972
[ANSWER] is a sister city of max number of human settlements
[{'concept': 'Q13220204'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?y ) WHERE { ?q property:P190 ?e . ?q rdf:type ontology:Q13220204 . ?e rdf:type ontology:Q486972 } GROUP BY ?q } } . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?f ) WHERE { ?p property:P190 ?t . ?p rdf:type ontology:Q13220204 . ?t rdf:type ontology:Q486972 } GROUP BY ?p } . FILTER ( ?f = ?g ) }
Rivne
Rivne is a sister city of max number of human settlements
Rivne
action argmax
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type human settlement
[{'concept': 'second-level administrative country subdivision'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?y ) WHERE { ?q property:sister_city ?e . ?q rdf:type ontology:second-level_administrative_country_subdivision . ?e rdf:type ontology:human_settlement } GROUP BY ?q } } . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?f ) WHERE { ?p property:sister_city ?t . ?p rdf:type ontology:second-level_administrative_country_subdivision . ?t rdf:type ontology:human_settlement } GROUP BY ?p } . FILTER ( ?f = ?g ) }
[]