Simple Question (Direct)
Simple Question
Q559418
P21
Q290
USER
Which sex does Alexander von Zagareli belong to ?
(Q559418,P21,c(Q290))
action filter_type
action find
entity Q559418
relation P21
type Q290
['Q559418', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q559418 property:P21 ?n . ?n rdf:type ontology:Q290 }
Alexander von Zagareli
action filter_type
action find
entity Alexander von Zagareli
relation gender
type sex
['Alexander von Zagareli', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Alexander_von_Zagareli property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q559418,P21,c(Q290))
action filter_type
action find
entity Q559418
relation P21
type Q290
Alexander von Zagareli belongs to [ANSWER]
['Q559418', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q559418 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
Alexander von Zagareli belongs to male
male
action filter_type
action find
entity Alexander von Zagareli
relation gender
type sex
['Alexander von Zagareli', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Alexander_von_Zagareli property:gender ?n . ?n rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q559418
P106
Q12737077
USER
How many occupations are the job of Alexander von Zagareli ?
(Q559418,P106,c(Q12737077))
action count
action filter_type
action find
entity Q559418
relation P106
type Q12737077
['Q559418', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { ?u rdf:type ontology:Q12737077 . resource:Q559418 property:P106 ?u }
Alexander von Zagareli
action count
action filter_type
action find
entity Alexander von Zagareli
relation occupation
type occupation
['Alexander von Zagareli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { ?u rdf:type ontology:occupation . resource:Alexander_von_Zagareli property:occupation ?u }
[]
occupation
SYSTEM
2
Q14467526 Q1622272
(Q559418,P106,c(Q12737077))
action count
action filter_type
action find
entity Q559418
relation P106
type Q12737077
[ANSWER]
['Q559418', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { ?u rdf:type ontology:Q12737077 . resource:Q559418 property:P106 ?u }
linguist university teacher
2
action count
action filter_type
action find
entity Alexander von Zagareli
relation occupation
type occupation
['Alexander von Zagareli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { ?u rdf:type ontology:occupation . resource:Alexander_von_Zagareli property:occupation ?u }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q1794370
P106
Q12737077
USER
And what about Peter Lodynski?
(Q1794370,P106,c(Q12737077))
action count
action filter_type
action find
entity Q1794370
relation P106
type Q12737077
['Q1794370', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { resource:Q1794370 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Peter Lodynski
action count
action filter_type
action find
entity Peter Lodynski
relation occupation
type occupation
['Peter Lodynski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { resource:Peter_Lodynski property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
SYSTEM
3
Q2259451 Q33999 Q36180
(Q1794370,P106,c(Q12737077))
action count
action filter_type
action find
entity Q1794370
relation P106
type Q12737077
[ANSWER]
['Q1794370', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { resource:Q1794370 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
stage actor actor writer
3
action count
action filter_type
action find
entity Peter Lodynski
relation occupation
type occupation
['Peter Lodynski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { resource:Peter_Lodynski property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q6109388
Q12737077
USER
And also tell me about J J Lagowski?
(Q6109388,P106,c(Q12737077))
action count
action filter_type
action find
entity Q6109388
relation P106
type Q12737077
['Q6109388', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Q6109388 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
J J Lagowski
action count
action filter_type
action find
entity J J Lagowski
relation occupation
type occupation
['J J Lagowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:J_J_Lagowski property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
SYSTEM
2
(Q6109388,P106,c(Q12737077))
action count
action filter_type
action find
entity Q6109388
relation P106
type Q12737077
[ANSWER]
['Q6109388', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Q6109388 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
2
action count
action filter_type
action find
entity J J Lagowski
relation occupation
type occupation
['J J Lagowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:J_J_Lagowski property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q180981 Q1794370
P47 P27
Q1048835
USER
Which political territories do Peter Lodynski belong to or share border with Kirovohrad Oblast ?
OR((Q1794370,P27,c(Q1048835)), (Q180981,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1794370
relation P27
action find
entity Q180981
relation P47
type Q1048835
{'OR': [['Q1794370', 'P27', {'concept': 'Q1048835'}], ['Q180981', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1794370 property:P27 ?n } UNION { resource:Q180981 property:P47 ?n } } . ?n rdf:type ontology:Q1048835 }
Kirovohrad Oblast Peter Lodynski
action filter_type
action union
action find
entity Peter Lodynski
relation country of citizenship
action find
entity Kirovohrad Oblast
relation shares border with
type political territorial entity
{'OR': [['Peter Lodynski', 'country of citizenship', {'concept': 'political territorial entity'}], ['Kirovohrad Oblast', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Peter_Lodynski property:country_of_citizenship ?n } UNION { resource:Kirovohrad_Oblast property:shares_border_with ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q166709 Q40 Q170672 Q171852 Q181633 Q169501 Q161808
SYSTEM
Vinnytsia Oblast, Austria, Dnipropetrovsk Oblast, Odessa Oblast, Mykolaiv Oblast, Poltava Oblast, Cherkasy Oblast
Q166709 Q40 Q170672 Q171852 Q181633 Q169501 Q161808
OR((Q1794370,P27,c(Q1048835)), (Q180981,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1794370
relation P27
action find
entity Q180981
relation P47
type Q1048835
Peter Lodynski belong to [ANSWERS]
{'OR': [['Q1794370', 'P27', {'concept': 'Q1048835'}], ['Q180981', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1794370 property:P27 ?n } UNION { resource:Q180981 property:P47 ?n } } . ?n rdf:type ontology:Q1048835 }
Vinnytsia Oblast Austria Dnipropetrovsk Oblast Odessa Oblast Mykolaiv Oblast Poltava Oblast Cherkasy Oblast
Peter Lodynski belong to Vinnytsia Oblast, Austria, Dnipropetrovsk Oblast, Odessa Oblast, Mykolaiv Oblast, Poltava Oblast and Cherkasy Oblast
Vinnytsia Oblast Austria Dnipropetrovsk Oblast Odessa Oblast Mykolaiv Oblast Poltava Oblast Cherkasy Oblast
action filter_type
action union
action find
entity Peter Lodynski
relation country of citizenship
action find
entity Kirovohrad Oblast
relation shares border with
type political territorial entity
{'OR': [['Peter Lodynski', 'country of citizenship', {'concept': 'political territorial entity'}], ['Kirovohrad Oblast', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Peter_Lodynski property:country_of_citizenship ?n } UNION { resource:Kirovohrad_Oblast property:shares_border_with ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic associations with exactly 1 political territory ?
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?d ) WHERE { ?w property:P530 ?k . ?w rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?d = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?d ) WHERE { ?w property:diplomatic_relation ?k . ?w rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?d = 1 ) }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[ANSWERS] have diplomatic associations with exactly 1 political territory
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?d ) WHERE { ?w property:P530 ?k . ?w rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?d = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have diplomatic associations with exactly 1 political territory
Gabon Grenada Papua New Guinea
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?d ) WHERE { ?w property:diplomatic_relation ?k . ?w rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?d = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q408
P530
Q1048835 Q1048835
USER
How many political territories have ambassadorial relations with lesser number of political territories than Australia ?
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?h ) WHERE { ?t property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Q408 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?h < ?c ) }
Australia
action count
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 Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?h ) WHERE { ?t property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Australia property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?h < ?c ) }
[]
political territorial entity political territorial entity
SYSTEM
12
Q1000 Q40 Q781 Q778 Q183 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?h ) WHERE { ?t property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Q408 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?h < ?c ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
12
action count
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 Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?h ) WHERE { ?t property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Australia property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?h < ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q664
P530
Q1048835 Q1048835
USER
And also tell me about New Zealand?
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?w ) WHERE { ?o property:P530 ?i . ?o rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Q664 property:P530 ?e . ?e rdf:type ontology:Q1048835 } } . FILTER ( ?w < ?x ) }
New Zealand
action count
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 New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?w ) WHERE { ?o property:diplomatic_relation ?i . ?o rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:New_Zealand property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity } } . FILTER ( ?w < ?x ) }
[]
political territorial entity political territorial entity
SYSTEM
8
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?w ) WHERE { ?o property:P530 ?i . ?o rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Q664 property:P530 ?e . ?e rdf:type ontology:Q1048835 } } . FILTER ( ?w < ?x ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
8
action count
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 New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?w ) WHERE { ?o property:diplomatic_relation ?i . ?o rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:New_Zealand property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity } } . FILTER ( ?w < ?x ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q40
P138
Q2712963 Q486972
USER
How many abstract nouns or human settlements are Austria named after ?
(Q40,P138,c(Q2712963)) (Q40,P138,c(Q486972))
action count
action union
action filter_type
action find
entity Q40
relation P138
type Q2712963
action filter_type
action find
entity Q40
relation P138
type Q486972
['Q40', 'P138', {'concept': 'Q2712963'}] ['Q40', 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { VALUES ( ?w ) { ( ontology:Q2712963 ) ( ontology:Q486972 ) } . ?m rdf:type ?w }
Austria
action count
action union
action filter_type
action find
entity Austria
relation named after
type abstract noun
action filter_type
action find
entity Austria
relation named after
type human settlement
['Austria', 'named after', {'concept': 'abstract noun'}] ['Austria', 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { VALUES ( ?w ) { ( ontology:abstract_noun ) ( ontology:human_settlement ) } . ?m rdf:type ?w }
[]
abstract noun human settlement
SYSTEM
2
Q684 Q510604
(Q40,P138,c(Q2712963)) (Q40,P138,c(Q486972))
action count
action union
action filter_type
action find
entity Q40
relation P138
type Q2712963
action filter_type
action find
entity Q40
relation P138
type Q486972
[ANSWER]
['Q40', 'P138', {'concept': 'Q2712963'}] ['Q40', 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { VALUES ( ?w ) { ( ontology:Q2712963 ) ( ontology:Q486972 ) } . ?m rdf:type ?w }
east Raabs an der Thaya
2
action count
action union
action filter_type
action find
entity Austria
relation named after
type abstract noun
action filter_type
action find
entity Austria
relation named after
type human settlement
['Austria', 'named after', {'concept': 'abstract noun'}] ['Austria', 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { VALUES ( ?w ) { ( ontology:abstract_noun ) ( ontology:human_settlement ) } . ?m rdf:type ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40
P937
Q502895
USER
Who works at that political territory ?
action filter_type
action find_reverse
entity Q40
relation P937
type Q502895
SELECT DISTINCT ?m WHERE { ?m property:P937 resource:Q40 . ?m rdf:type ontology:Q502895 }
Austria
action filter_type
action find_reverse
entity Austria
relation work location
type common name
SELECT DISTINCT ?m WHERE { ?m property:work_location resource:Austria . ?m rdf:type ontology:common_name }
[]
common name
Q261389 Q113581 Q22133416
SYSTEM
Princess Isabella of Croÿ, Conchita Wurst, Jennifer Lacey
Q113581 Q261389 Q345771 Q874606 Q22133416 Q90201
action filter_type
action find_reverse
entity Q40
relation P937
type Q502895
[ANSWERS] work at that political territory
SELECT DISTINCT ?m WHERE { ?m property:P937 resource:Q40 . ?m rdf:type ontology:Q502895 }
Conchita Wurst Princess Isabella of Croÿ Joshua Sinclair Otto Friedrich Jennifer Lacey Boris Brainin
Princess Isabella of Croÿ, Conchita Wurst and Jennifer Lacey work at that political territory
Princess Isabella of Croÿ Conchita Wurst Jennifer Lacey
action filter_type
action find_reverse
entity Austria
relation work location
type common name
SELECT DISTINCT ?m WHERE { ?m property:work_location resource:Austria . ?m rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q113581
P344
Q15416
USER
Which television programs are that person the cinematographer of ?
(c(Q15416),P344,Q113581)
action filter_type
action find_reverse
entity Q113581
relation P344
type Q15416
[{'concept': 'Q15416'}, 'P344', 'Q113581']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15416 . ?e property:P344 resource:Q113581 }
Conchita Wurst
action filter_type
action find_reverse
entity Conchita Wurst
relation director of photography
type television program
[{'concept': 'television program'}, 'director of photography', 'Conchita Wurst']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:television_program . ?e property:director_of_photography resource:Conchita_Wurst }
[]
television program
Clarification for simple ques.
Q261389
SYSTEM
Did you mean Princess Isabella of Croÿ ?
Q261389 Q113581 Q22133416
(c(Q15416),P344,Q261389) (c(Q15416),P344,Q113581) (c(Q15416),P344,Q22133416)
[ANSWER]
[{'concept': 'Q15416'}, 'P344', 'Q261389'] [{'concept': 'Q15416'}, 'P344', 'Q113581'] [{'concept': 'Q15416'}, 'P344', 'Q22133416']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15416 . ?e property:P344 resource:Q113581 }
Princess Isabella of Croÿ Conchita Wurst Jennifer Lacey
Did you mean Princess Isabella of Croÿ ?
Princess Isabella of Croÿ
[{'concept': 'television program'}, 'director of photography', 'Princess Isabella of Croÿ'] [{'concept': 'television program'}, 'director of photography', 'Conchita Wurst'] [{'concept': 'television program'}, 'director of photography', 'Jennifer Lacey']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:television_program . ?e property:director_of_photography resource:Conchita_Wurst }
[]
Simple Question (Coreferenced)
USER
No, I meant Conchita Wurst. Could you tell me the answer for that?
(c(Q15416),P344,Q113581)
Q113581
[{'concept': 'Q15416'}, 'P344', 'Q113581']
[{'concept': 'television program'}, 'director of photography', 'Conchita Wurst']
[]
Q12125436 Q7766184 Q3224576
SYSTEM
Labor of Love, The Staircase, The Christmas Blessing
Q12125436 Q7766184 Q3224576
(c(Q15416),P344,Q113581)
action filter_type
action find_reverse
entity Q113581
relation P344
type Q15416
[ANSWERS] are that person the cinematographer of
[{'concept': 'Q15416'}, 'P344', 'Q113581']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15416 . ?e property:P344 resource:Q113581 }
Labor of Love The Staircase The Christmas Blessing
Labor of Love, The Staircase and The Christmas Blessing are that person the cinematographer of
Labor of Love The Staircase The Christmas Blessing
action filter_type
action find_reverse
entity Conchita Wurst
relation director of photography
type television program
[{'concept': 'television program'}, 'director of photography', 'Conchita Wurst']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:television_program . ?e property:director_of_photography resource:Conchita_Wurst }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1000
P463
Q43229 Q56061
USER
How many organizations or administrative territories had Gabon as their member ?
(Q1000,P463,c(Q43229)) (Q1000,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q1000
relation P463
type Q43229
action filter_type
action find
entity Q1000
relation P463
type Q56061
['Q1000', 'P463', {'concept': 'Q43229'}] ['Q1000', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { resource:Q1000 property:P463 ?d . ?d rdf:type ontology:Q56061 } UNION { resource:Q1000 property:P463 ?d . ?d rdf:type ontology:Q43229 } }
Gabon
action count
action union
action filter_type
action find
entity Gabon
relation member of
type organization
action filter_type
action find
entity Gabon
relation member of
type administrative territorial entity
['Gabon', 'member of', {'concept': 'organization'}] ['Gabon', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { resource:Gabon property:member_of ?d . ?d rdf:type ontology:administrative_territorial_entity } UNION { resource:Gabon property:member_of ?d . ?d rdf:type ontology:organization } }
[]
organization administrative territorial entity
SYSTEM
7
Q340195 Q191384 Q656801 Q899770 Q7825 Q7159 Q827525
(Q1000,P463,c(Q43229)) (Q1000,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q1000
relation P463
type Q43229
action filter_type
action find
entity Q1000
relation P463
type Q56061
[ANSWER]
['Q1000', 'P463', {'concept': 'Q43229'}] ['Q1000', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { resource:Q1000 property:P463 ?d . ?d rdf:type ontology:Q56061 } UNION { resource:Q1000 property:P463 ?d . ?d rdf:type ontology:Q43229 } }
African Development Bank International Bank for Reconstruction and Development International Finance Corporation International Centre for Settlement of Investment Disputes World Trade Organization African Union International Development Association
7
action count
action union
action filter_type
action find
entity Gabon
relation member of
type organization
action filter_type
action find
entity Gabon
relation member of
type administrative territorial entity
['Gabon', 'member of', {'concept': 'organization'}] ['Gabon', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { resource:Gabon property:member_of ?d . ?d rdf:type ontology:administrative_territorial_entity } UNION { resource:Gabon property:member_of ?d . ?d rdf:type ontology:organization } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q15324 Q56061 Q1048835
USER
Which political territories are located in exactly 1 bodies of water and administrative territories ?
(c(Q1048835),P706,c(Q15324)|c(Q56061))
action equal
action union
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action find_tuple_counts
relation P706
type Q1048835
type Q56061
value 1
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?a ) WHERE { { ?u property:P706 ?v . ?u rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15324 } UNION { ?u property:P706 ?v . ?u rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q56061 } } GROUP BY ?u } . FILTER ( ?a = 1 ) }
action equal
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type administrative territorial entity
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?a ) WHERE { { ?u property:located_on_terrain_feature ?v . ?u rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:body_of_water } UNION { ?u property:located_on_terrain_feature ?v . ?u rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:administrative_territorial_entity } } GROUP BY ?u } . FILTER ( ?a = 1 ) }
[]
body of water administrative territorial entity political territorial entity
Q1747689 Q9676 Q168159
SYSTEM
Ancient Rome, Isle of Man, Anglesey
Q1747689 Q9676 Q168159
(c(Q1048835),P706,c(Q15324)|c(Q56061))
action equal
action union
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action find_tuple_counts
relation P706
type Q1048835
type Q56061
value 1
[ANSWERS] are located in exactly 1 bodies of water and administrative territories
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?a ) WHERE { { ?u property:P706 ?v . ?u rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15324 } UNION { ?u property:P706 ?v . ?u rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q56061 } } GROUP BY ?u } . FILTER ( ?a = 1 ) }
Ancient Rome Isle of Man Anglesey
Ancient Rome, Isle of Man and Anglesey are located in exactly 1 bodies of water and administrative territories
Ancient Rome Isle of Man Anglesey
action equal
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type administrative territorial entity
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?a ) WHERE { { ?u property:located_on_terrain_feature ?v . ?u rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:body_of_water } UNION { ?u property:located_on_terrain_feature ?v . ?u rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:administrative_territorial_entity } } GROUP BY ?u } . FILTER ( ?a = 1 ) }
[]