Simple Question (Direct)
Simple Question
Q1669257
P641
Q349
USER
Which sport was Matthias Bleyer a part of ?
(Q1669257,P641,c(Q349))
action filter_type
action find
entity Q1669257
relation P641
type Q349
['Q1669257', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q1669257 property:P641 ?h . ?h rdf:type ontology:Q349 }
Matthias Bleyer
action filter_type
action find
entity Matthias Bleyer
relation sport
type sport
['Matthias Bleyer', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Matthias_Bleyer property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1669257,P641,c(Q349))
action filter_type
action find
entity Q1669257
relation P641
type Q349
Which sport was Matthias Bleyer a part of
['Q1669257', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q1669257 property:P641 ?h . ?h rdf:type ontology:Q349 }
association football
Which sport was Matthias Bleyer a part of
association football
action filter_type
action find
entity Matthias Bleyer
relation sport
type sport
['Matthias Bleyer', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Matthias_Bleyer property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
Which territory is the country of origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?f WHERE { resource:Q2736 property:P495 ?f . ?f rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:association_football property:country_of_origin ?f . ?f rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
[ANSWER] is the country of origin of that sport
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?f WHERE { resource:Q2736 property:P495 ?f . ?f rdf:type ontology:Q1496967 }
England
England is the country of origin of that sport
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:association_football property:country_of_origin ?f . ?f rdf:type ontology:territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P840
Q1496967 Q15416 Q166142
USER
How many territories are approximately the same number of television programs and applications set in as that territory ?
(c(Q15416)|c(Q166142),P840,c(Q1496967))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q15416
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q21
relation P840
type Q15416
type Q166142
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?d WHERE { ?r rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15416 ) ( ontology:Q166142 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { ?p property:P840 resource:Q21 . { { ?p rdf:type ontology:Q15416 } UNION { ?p rdf:type ontology:Q166142 } } } } . FILTER ( ?u = ?l ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity England
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?d WHERE { ?r rdf:type ?g . VALUES ( ?g ) { ( ontology:television_program ) ( ontology:application ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { ?p property:narrative_location resource:England . { { ?p rdf:type ontology:television_program } UNION { ?p rdf:type ontology:application } } } } . FILTER ( ?u = ?l ) }
[]
territorial entity television program application
SYSTEM
1
Q21
(c(Q15416)|c(Q166142),P840,c(Q1496967))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q15416
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q21
relation P840
type Q15416
type Q166142
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?d WHERE { ?r rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15416 ) ( ontology:Q166142 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { ?p property:P840 resource:Q21 . { { ?p rdf:type ontology:Q15416 } UNION { ?p rdf:type ontology:Q166142 } } } } . FILTER ( ?u = ?l ) }
England
1
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity England
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?d WHERE { ?r rdf:type ?g . VALUES ( ?g ) { ( ontology:television_program ) ( ontology:application ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { ?p property:narrative_location resource:England . { { ?p rdf:type ontology:television_program } UNION { ?p rdf:type ontology:application } } } } . FILTER ( ?u = ?l ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21
P551
Q502895
USER
Which people dwell at England ?
(c(Q502895),P551,Q21)
action filter_type
action find_reverse
entity Q21
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q21']
SELECT DISTINCT ?o WHERE { ?o property:P551 resource:Q21 . ?o rdf:type ontology:Q502895 }
England
action filter_type
action find_reverse
entity England
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'England']
SELECT DISTINCT ?o WHERE { ?o property:residence resource:England . ?o rdf:type ontology:common_name }
[]
common name
Q7085 Q12908 Q935
SYSTEM
Niels Bohr, George Soros, Isaac Newton
Q19721999 Q7085 Q17297597 Q15632055 Q1331681 Q12908 Q189144 Q544951 Q7086769 Q171363 Q27740159 Q3198512 Q21151748 Q16065895 Q21069418 Q6097409 Q117139 Q8006910 Q2877725 Q15429884 Q213712 Q14277 Q76948 Q6914744 Q19629253 Q935 Q5538701 Q20810758
(c(Q502895),P551,Q21)
action filter_type
action find_reverse
entity Q21
relation P551
type Q502895
[ANSWERS] dwell at England
[{'concept': 'Q502895'}, 'P551', 'Q21']
SELECT DISTINCT ?o WHERE { ?o property:P551 resource:Q21 . ?o rdf:type ontology:Q502895 }
Coco Piris Niels Bohr Charles de Coux Christie Fuller Ella Briggs George Soros Walter Raleigh Moshoeshoe II of Lesotho Oli Thompson Viggo Mortensen Barbara Ferland Gundulf Rosemary Stjernstedt Maria Caterina Rosalbina Caradori-Allan Frédéric Albrecht Ivan Sansom Wiz Khalifa William Close Baba de Faucigny-Lucinge Mary Elizabeth Hawker Rudolf von Laban William Herschel Caroline Herschel Mortimer Menpes Jacques Dessalines Isaac Newton George E. A. Hallett Leopold William Jerome Fane De Salis
Niels Bohr, George Soros and Isaac Newton dwell at England
Niels Bohr George Soros Isaac Newton
action filter_type
action find_reverse
entity England
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'England']
SELECT DISTINCT ?o WHERE { ?o property:residence resource:England . ?o rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21
P163
Q14660
USER
What is associated with England ?
(Q21,P163,c(Q14660))
action filter_type
action find
entity Q21
relation P163
type Q14660
['Q21', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { resource:Q21 property:P163 ?p . ?p rdf:type ontology:Q14660 }
England
action filter_type
action find
entity England
relation flag
type flag
['England', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { resource:England property:flag ?p . ?p rdf:type ontology:flag }
[]
flag
Q171117
SYSTEM
flag of England
Q171117
(Q21,P163,c(Q14660))
action filter_type
action find
entity Q21
relation P163
type Q14660
The [ANSWER] is associated with England
['Q21', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { resource:Q21 property:P163 ?p . ?p rdf:type ontology:Q14660 }
flag of England
The flag of England is associated with England
flag of England
action filter_type
action find
entity England
relation flag
type flag
['England', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { resource:England property:flag ?p . ?p rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7085
P1066
Q502895
USER
Who is a student of Niels Bohr ?
(c(Q502895),P1066,Q7085)
action filter_type
action find_reverse
entity Q7085
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q7085']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P1066 resource:Q7085 }
Niels Bohr
action filter_type
action find_reverse
entity Niels Bohr
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Niels Bohr']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:student_of resource:Niels_Bohr }
[]
common name
Q451225
SYSTEM
Hans Kramers
Q451225
(c(Q502895),P1066,Q7085)
action filter_type
action find_reverse
entity Q7085
relation P1066
type Q502895
A student of Niels Bohr is called [ANSWER]
[{'concept': 'Q502895'}, 'P1066', 'Q7085']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P1066 resource:Q7085 }
Hans Kramers
A student of Niels Bohr is called Hans Kramers
Hans Kramers
action filter_type
action find_reverse
entity Niels Bohr
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Niels Bohr']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:student_of resource:Niels_Bohr }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q451225
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q451225,P20,c(Q56061))
action filter_type
action find
entity Q451225
relation P20
type Q56061
['Q451225', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q451225 property:P20 ?l . ?l rdf:type ontology:Q56061 }
Hans Kramers
action filter_type
action find
entity Hans Kramers
relation place of death
type administrative territorial entity
['Hans Kramers', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Hans_Kramers property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q94747
SYSTEM
Oegstgeest
Q94747
(Q451225,P20,c(Q56061))
action filter_type
action find
entity Q451225
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q451225', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q451225 property:P20 ?l . ?l rdf:type ontology:Q56061 }
Oegstgeest
Oegstgeest is the place of death of that person
Oegstgeest
action filter_type
action find
entity Hans Kramers
relation place of death
type administrative territorial entity
['Hans Kramers', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Hans_Kramers property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q102652 Q94747
P47 P17
Q15617994
USER
Which administrative territories are Oegstgeest situated in or are bordered by Montale ?
OR((Q94747,P17,c(Q15617994)), (Q102652,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q94747
relation P17
action find
entity Q102652
relation P47
type Q15617994
{'OR': [['Q94747', 'P17', {'concept': 'Q15617994'}], ['Q102652', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q94747 property:P17 ?c } UNION { resource:Q102652 property:P47 ?c } } . ?c rdf:type ontology:Q15617994 }
Montale Oegstgeest
action filter_type
action union
action find
entity Oegstgeest
relation country
action find
entity Montale
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Oegstgeest', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Montale', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Oegstgeest property:country ?c } UNION { resource:Montale property:shares_border_with ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q13376 Q102555 Q20389 Q20382 Q55
SYSTEM
Pistoia, Agliana, Montemurlo, Cantagallo, Netherlands
Q13376 Q102555 Q20389 Q20382 Q55
OR((Q94747,P17,c(Q15617994)), (Q102652,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q94747
relation P17
action find
entity Q102652
relation P47
type Q15617994
[ANSWERS]
{'OR': [['Q94747', 'P17', {'concept': 'Q15617994'}], ['Q102652', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q94747 property:P17 ?c } UNION { resource:Q102652 property:P47 ?c } } . ?c rdf:type ontology:Q15617994 }
Pistoia Agliana Montemurlo Cantagallo Netherlands
Which administrative territories are Oegstgeest situated in or are bordered by Montale
Pistoia Agliana Montemurlo Cantagallo Netherlands
action filter_type
action union
action find
entity Oegstgeest
relation country
action find
entity Montale
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Oegstgeest', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Montale', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Oegstgeest property:country ?c } UNION { resource:Montale property:shares_border_with ?c } } . ?c 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
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with approximately 50 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 50
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?j ) WHERE { ?u rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?u property:P530 ?e } GROUP BY ?u } . FILTER ( ?j = 50 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 50
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?j ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:diplomatic_relation ?e } GROUP BY ?u } . FILTER ( ?j = 50 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q155
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 50
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?j ) WHERE { ?u rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?u property:P530 ?e } GROUP BY ?u } . FILTER ( ?j = 50 ) }
Brazil
1
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 50
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?j ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:diplomatic_relation ?e } GROUP BY ?u } . FILTER ( ?j = 50 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q184 Q55
P463
Q484652
USER
Which international organizations were Netherlands and Belarus a member of ?
AND((Q55,P463,c(Q484652)), (Q184,P463,c(Q484652)))
action filter_type
action intersection
action find
entity Q55
relation P463
action find
entity Q184
relation P463
type Q484652
{'AND': [['Q55', 'P463', {'concept': 'Q484652'}], ['Q184', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q484652 . resource:Q55 property:P463 ?d . resource:Q184 property:P463 ?d }
Belarus Netherlands
action filter_type
action intersection
action find
entity Netherlands
relation member of
action find
entity Belarus
relation member of
type international organization
{'AND': [['Netherlands', 'member of', {'concept': 'international organization'}], ['Belarus', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:international_organization . resource:Netherlands property:member_of ?d . resource:Belarus property:member_of ?d }
[]
international organization
Q81299 Q1043527
SYSTEM
Organization for Security and Co-operation in Europe, Multilateral Investment Guarantee Agency
Q81299 Q1043527
AND((Q55,P463,c(Q484652)), (Q184,P463,c(Q484652)))
action filter_type
action intersection
action find
entity Q55
relation P463
action find
entity Q184
relation P463
type Q484652
[ANSWERS] were Netherlands and Belarus a member of
{'AND': [['Q55', 'P463', {'concept': 'Q484652'}], ['Q184', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q484652 . resource:Q55 property:P463 ?d . resource:Q184 property:P463 ?d }
Organization for Security and Co-operation in Europe Multilateral Investment Guarantee Agency
Organization for Security and Co-operation in Europe and Multilateral Investment Guarantee Agency were Netherlands and Belarus a member of
Organization for Security and Co-operation in Europe Multilateral Investment Guarantee Agency
action filter_type
action intersection
action find
entity Netherlands
relation member of
action find
entity Belarus
relation member of
type international organization
{'AND': [['Netherlands', 'member of', {'concept': 'international organization'}], ['Belarus', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:international_organization . resource:Netherlands property:member_of ?d . resource:Belarus property:member_of ?d }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q836
P463
Q15617994
USER
Do Myanmar have a membership of those international organizations ?
(Q836,P463,Q81299) (Q836,P463,Q1043527)
action is_in
entity prev_answer
action find
entity Q836
relation P463
['Q836', 'P463', 'Q81299'] ['Q836', 'P463', 'Q1043527']
ASK WHERE { VALUES ( ?m ) { ( resource:Q81299 ) ( resource:Q1043527 ) } . resource:Q836 property:P463 ?m }
Myanmar
action is_in
entity prev_answer
action find
entity Myanmar
relation member of
['Myanmar', 'member of', 'Organization for Security and Co-operation in Europe'] ['Myanmar', 'member of', 'Multilateral Investment Guarantee Agency']
ASK WHERE { VALUES ( ?m ) { ( resource:Organization_for_Security_and_Co-operation_in_Europe ) ( resource:Multilateral_Investment_Guarantee_Agency ) } . resource:Myanmar property:member_of ?m }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q836,P463,Q81299) (Q836,P463,Q1043527)
action is_in
entity prev_answer
action find
entity Q836
relation P463
[ANSWER]
['Q836', 'P463', 'Q81299'] ['Q836', 'P463', 'Q1043527']
ASK WHERE { VALUES ( ?m ) { ( resource:Q81299 ) ( resource:Q1043527 ) } . resource:Q836 property:P463 ?m }
No
action is_in
entity prev_answer
action find
entity Myanmar
relation member of
['Myanmar', 'member of', 'Organization for Security and Co-operation in Europe'] ['Myanmar', 'member of', 'Multilateral Investment Guarantee Agency']
ASK WHERE { VALUES ( ?m ) { ( resource:Organization_for_Security_and_Co-operation_in_Europe ) ( resource:Multilateral_Investment_Guarantee_Agency ) } . resource:Myanmar property:member_of ?m }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q6581072 Q12908
P21 P22
Q502895
USER
Which people have George Soros as father and do not have gender of female ?
AND((c(Q502895),P22,Q12908), NOT((c(Q502895),P21,Q6581072)))
action filter_type
action difference
action find_reverse
entity Q12908
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q12908'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581072']]}]}
SELECT DISTINCT ?s WHERE { ?s property:P22 resource:Q12908 . FILTER NOT EXISTS { ?s property:P21 resource:Q6581072 } . ?s rdf:type ontology:Q502895 }
female George Soros
action filter_type
action difference
action find_reverse
entity George Soros
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'George Soros'], {'NOT': [[{'concept': 'common name'}, 'gender', 'female']]}]}
SELECT DISTINCT ?s WHERE { ?s property:father resource:George_Soros . FILTER NOT EXISTS { ?s property:gender resource:female } . ?s rdf:type ontology:common_name }
[]
common name
Q4720120 Q22244478 Q19874733 Q22244492
SYSTEM
Alexander Soros, Gregory Soros, Jonathan Soros, Robert Soros
Q4720120 Q22244478 Q19874733 Q22244492
AND((c(Q502895),P22,Q12908), NOT((c(Q502895),P21,Q6581072)))
action filter_type
action difference
action find_reverse
entity Q12908
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWERS] have George Soros as father and do not have gender of female
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q12908'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581072']]}]}
SELECT DISTINCT ?s WHERE { ?s property:P22 resource:Q12908 . FILTER NOT EXISTS { ?s property:P21 resource:Q6581072 } . ?s rdf:type ontology:Q502895 }
Alexander Soros Gregory Soros Jonathan Soros Robert Soros
Alexander Soros, Gregory Soros, Jonathan Soros and Robert Soros have George Soros as father and do not have gender of female
Alexander Soros Gregory Soros Jonathan Soros Robert Soros
action filter_type
action difference
action find_reverse
entity George Soros
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'George Soros'], {'NOT': [[{'concept': 'common name'}, 'gender', 'female']]}]}
SELECT DISTINCT ?s WHERE { ?s property:father resource:George_Soros . FILTER NOT EXISTS { ?s property:gender resource:female } . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q55
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories have diplomatic relations with Netherlands ?
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q55
relation P530
type Q15617994
action filter_type
action find
entity Q55
relation P530
type Q1048835
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { resource:Q55 property:P530 ?j . ?j rdf:type ontology:Q15617994 } UNION { resource:Q55 property:P530 ?j . ?j rdf:type ontology:Q1048835 } }
Netherlands
action count
action union
action filter_type
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { resource:Netherlands property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Netherlands property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
3
Q408 Q38 Q183
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q55
relation P530
type Q15617994
action filter_type
action find
entity Q55
relation P530
type Q1048835
[ANSWER]
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { resource:Q55 property:P530 ?j . ?j rdf:type ontology:Q15617994 } UNION { resource:Q55 property:P530 ?j . ?j rdf:type ontology:Q1048835 } }
Australia Italy Germany
3
action count
action union
action filter_type
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { resource:Netherlands property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Netherlands property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q55
P532
Q2235308
USER
Which ship type has its base port as that administrative territory ?
action filter_type
action find_reverse
entity Q55
relation P532
type Q2235308
SELECT DISTINCT ?e WHERE { ?e property:P532 resource:Q55 . ?e rdf:type ontology:Q2235308 }
Netherlands
action filter_type
action find_reverse
entity Netherlands
relation port of registry
type ship type
SELECT DISTINCT ?e WHERE { ?e property:port_of_registry resource:Netherlands . ?e rdf:type ontology:ship_type }
[]
ship type
Q885761
SYSTEM
MV Blue Marlin
Q885761
action filter_type
action find_reverse
entity Q55
relation P532
type Q2235308
[ANSWER] has its base port as that administrative territory
SELECT DISTINCT ?e WHERE { ?e property:P532 resource:Q55 . ?e rdf:type ontology:Q2235308 }
MV Blue Marlin
MV Blue Marlin has its base port as that administrative territory
MV Blue Marlin
action filter_type
action find_reverse
entity Netherlands
relation port of registry
type ship type
SELECT DISTINCT ?e WHERE { ?e property:port_of_registry resource:Netherlands . ?e rdf:type ontology:ship_type }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q55 Q843
P530
Q1048835
USER
How many political territories have diplomatic relations with Netherlands and Pakistan ?
(Q55,P530,c(Q1048835)) (Q843,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q55
relation P530
type Q1048835
action filter_type
action find
entity Q843
relation P530
type Q1048835
['Q55', 'P530', {'concept': 'Q1048835'}] ['Q843', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Q55 property:P530 ?k . ?k rdf:type ontology:Q1048835 . resource:Q843 property:P530 ?k . ?k rdf:type ontology:Q1048835 }
Netherlands Pakistan
action count
action intersection
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Pakistan
relation diplomatic relation
type political territorial entity
['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Netherlands property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . resource:Pakistan property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q55,P530,c(Q1048835)) (Q843,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q55
relation P530
type Q1048835
action filter_type
action find
entity Q843
relation P530
type Q1048835
[ANSWER]
['Q55', 'P530', {'concept': 'Q1048835'}] ['Q843', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Q55 property:P530 ?k . ?k rdf:type ontology:Q1048835 . resource:Q843 property:P530 ?k . ?k rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Pakistan
relation diplomatic relation
type political territorial entity
['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Netherlands property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . resource:Pakistan property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity }
[]