Simple Question (Direct)
Simple Question
Q95465
P27
Q1048835
USER
Which political territory is the country of citizenship of Tommy Jaud ?
(Q95465,P27,c(Q1048835))
action filter_type
action find
entity Q95465
relation P27
type Q1048835
['Q95465', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q95465 property:P27 ?d . ?d rdf:type ontology:Q1048835 }
Tommy Jaud
action filter_type
action find
entity Tommy Jaud
relation country of citizenship
type political territorial entity
['Tommy Jaud', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Tommy_Jaud property:country_of_citizenship ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q95465,P27,c(Q1048835))
action filter_type
action find
entity Q95465
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Tommy Jaud
['Q95465', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q95465 property:P27 ?d . ?d rdf:type ontology:Q1048835 }
Germany
Germany is the country of citizenship of Tommy Jaud
Germany
action filter_type
action find
entity Tommy Jaud
relation country of citizenship
type political territorial entity
['Tommy Jaud', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Tommy_Jaud property:country_of_citizenship ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q95465
P58
Q838948
USER
What is Tommy Jaud a screwriter of ?
(c(Q838948),P58,Q95465)
action filter_type
action find_reverse
entity Q95465
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q95465']
SELECT DISTINCT ?v WHERE { ?v property:P58 resource:Q95465 . ?v rdf:type ontology:Q838948 }
Tommy Jaud
action filter_type
action find_reverse
entity Tommy Jaud
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Tommy Jaud']
SELECT DISTINCT ?v WHERE { ?v property:screenwriter resource:Tommy_Jaud . ?v rdf:type ontology:work_of_art }
[]
work of art
Q1563632
SYSTEM
Vollidiot
Q1563632
(c(Q838948),P58,Q95465)
action filter_type
action find_reverse
entity Q95465
relation P58
type Q838948
Screwriter of the [ANSWER] Tommy Jaud is a
[{'concept': 'Q838948'}, 'P58', 'Q95465']
SELECT DISTINCT ?v WHERE { ?v property:P58 resource:Q95465 . ?v rdf:type ontology:Q838948 }
Vollidiot
Screwriter of the Vollidiot Tommy Jaud is a
Vollidiot
action filter_type
action find_reverse
entity Tommy Jaud
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Tommy Jaud']
SELECT DISTINCT ?v WHERE { ?v property:screenwriter resource:Tommy_Jaud . ?v rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q95465
P21
Q290
USER
Which sex does that person belong to ?
(Q1563632,P21,c(Q290))
action filter_type
action find
entity Q95465
relation P21
type Q290
['Q1563632', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q95465 property:P21 ?j . ?j rdf:type ontology:Q290 }
Tommy Jaud
action filter_type
action find
entity Tommy Jaud
relation gender
type sex
['Vollidiot', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Tommy_Jaud property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1563632,P21,c(Q290))
action filter_type
action find
entity Q95465
relation P21
type Q290
That person belongs to [ANSWER]
['Q1563632', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q95465 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Tommy Jaud
relation gender
type sex
['Vollidiot', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Tommy_Jaud property:gender ?j . ?j rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q1307214 Q151885 Q1048835
USER
Which political territories have atleast 1 forms of government and concepts as the form of government ?
(c(Q1048835),P122,c(Q1307214)|c(Q151885))
action atleast
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q151885
value 1
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) ?k WHERE { VALUES ( ?c ) { ( ontology:Q1307214 ) ( ontology:Q151885 ) } . ?v rdf:type ?c } GROUP BY ?k } . FILTER ( ?x >= 1 ) }
action atleast
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'concept'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) ?k WHERE { VALUES ( ?c ) { ( ontology:form_of_government ) ( ontology:concept ) } . ?v rdf:type ?c } GROUP BY ?k } . FILTER ( ?x >= 1 ) }
[]
form of government concept political territorial entity
Q408 Q16 Q1925048
SYSTEM
Australia, Canada, San Pedro Partido
Q1925048 Q178084 Q16 Q408 Q1250464
(c(Q1048835),P122,c(Q1307214)|c(Q151885))
action atleast
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q151885
value 1
[ANSWERS] have atleast 1 forms of government and concepts as the form of government
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) ?k WHERE { VALUES ( ?c ) { ( ontology:Q1307214 ) ( ontology:Q151885 ) } . ?v rdf:type ?c } GROUP BY ?k } . FILTER ( ?x >= 1 ) }
San Pedro Partido Ilkhanate Canada Australia realm
Australia, Canada and San Pedro Partido have atleast 1 forms of government and concepts as the form of government
Australia Canada San Pedro Partido
action atleast
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'concept'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) ?k WHERE { VALUES ( ?c ) { ( ontology:form_of_government ) ( ontology:concept ) } . ?v rdf:type ?c } GROUP BY ?k } . FILTER ( ?x >= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q408
P463
Q874405 Q484652
USER
How many social groups or international organizations were Australia a member of ?
(Q408,P463,c(Q874405)) (Q408,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q408
relation P463
type Q874405
action filter_type
action find
entity Q408
relation P463
type Q484652
['Q408', 'P463', {'concept': 'Q874405'}] ['Q408', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { resource:Q408 property:P463 ?n . ?n rdf:type ontology:Q874405 } UNION { resource:Q408 property:P463 ?n . ?n rdf:type ontology:Q484652 } }
Australia
action count
action union
action filter_type
action find
entity Australia
relation member of
type social group
action filter_type
action find
entity Australia
relation member of
type international organization
['Australia', 'member of', {'concept': 'social group'}] ['Australia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { resource:Australia property:member_of ?n . ?n rdf:type ontology:social_group } UNION { resource:Australia property:member_of ?n . ?n rdf:type ontology:international_organization } }
[]
social group international organization
SYSTEM
8
Q7768 Q19771 Q7785 Q1065 Q188822 Q782942 Q295875 Q1043527
(Q408,P463,c(Q874405)) (Q408,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q408
relation P463
type Q874405
action filter_type
action find
entity Q408
relation P463
type Q484652
[ANSWER]
['Q408', 'P463', {'concept': 'Q874405'}] ['Q408', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { resource:Q408 property:P463 ?n . ?n rdf:type ontology:Q874405 } UNION { resource:Q408 property:P463 ?n . ?n rdf:type ontology:Q484652 } }
ASEAN G20 Commonwealth of Nations United Nations Asian Development Bank Australia Group ANZUS Multilateral Investment Guarantee Agency
8
action count
action union
action filter_type
action find
entity Australia
relation member of
type social group
action filter_type
action find
entity Australia
relation member of
type international organization
['Australia', 'member of', {'concept': 'social group'}] ['Australia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { resource:Australia property:member_of ?n . ?n rdf:type ontology:social_group } UNION { resource:Australia property:member_of ?n . ?n rdf:type ontology:international_organization } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P921
Q571
USER
Which book has Germany as its principal topic ?
(c(Q571),P921,Q183)
action filter_type
action find_reverse
entity Q183
relation P921
type Q571
[{'concept': 'Q571'}, 'P921', 'Q183']
SELECT DISTINCT ?g WHERE { ?g property:P921 resource:Q183 . ?g rdf:type ontology:Q571 }
Germany
action filter_type
action find_reverse
entity Germany
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Germany']
SELECT DISTINCT ?g WHERE { ?g property:main_subject resource:Germany . ?g rdf:type ontology:book }
[]
book
Q15291012
SYSTEM
Writers and Radio
Q15291012
(c(Q571),P921,Q183)
action filter_type
action find_reverse
entity Q183
relation P921
type Q571
In [ANSWER] has Germany as its principal topic
[{'concept': 'Q571'}, 'P921', 'Q183']
SELECT DISTINCT ?g WHERE { ?g property:P921 resource:Q183 . ?g rdf:type ontology:Q571 }
Writers and Radio
In Writers and Radio has Germany as its principal topic
Writers and Radio
action filter_type
action find_reverse
entity Germany
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Germany']
SELECT DISTINCT ?g WHERE { ?g property:main_subject resource:Germany . ?g rdf:type ontology:book }
[]