Simple Question (Direct)
Simple Question
Q359903
P20
Q20667921
USER
Where did the demise of Ado Grenzstein occur ?
(Q359903,P20,c(Q20667921))
action filter_type
action find
entity Q359903
relation P20
type Q20667921
['Q359903', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?c WHERE { resource:Q359903 property:P20 ?c . ?c rdf:type ontology:Q20667921 }
Ado Grenzstein
action filter_type
action find
entity Ado Grenzstein
relation place of death
type type of french administrative division
['Ado Grenzstein', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?c WHERE { resource:Ado_Grenzstein property:place_of_death ?c . ?c rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q180083
SYSTEM
Menton
Q180083
(Q359903,P20,c(Q20667921))
action filter_type
action find
entity Q359903
relation P20
type Q20667921
The demise of Ado Grenzstein occurred in [ANSWER]
['Q359903', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?c WHERE { resource:Q359903 property:P20 ?c . ?c rdf:type ontology:Q20667921 }
Menton
The demise of Ado Grenzstein occurred in Menton
Menton
action filter_type
action find
entity Ado Grenzstein
relation place of death
type type of french administrative division
['Ado Grenzstein', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?c WHERE { resource:Ado_Grenzstein property:place_of_death ?c . ?c rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q359903
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q180083,P27,c(Q15617994))
action filter_type
action find
entity Q359903
relation P27
type Q15617994
['Q180083', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q359903 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Ado Grenzstein
action filter_type
action find
entity Ado Grenzstein
relation country of citizenship
type designation for an administrative territorial entity
['Menton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Ado_Grenzstein property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q191
SYSTEM
Estonia
Q191
(Q180083,P27,c(Q15617994))
action filter_type
action find
entity Q359903
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q180083', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q359903 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Estonia
The Estonia is the country of citizenship of that person
Estonia
action filter_type
action find
entity Ado Grenzstein
relation country of citizenship
type designation for an administrative territorial entity
['Menton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Ado_Grenzstein property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q191 Q408
P530
Q1048835
USER
Does Australia have a diplomatic relationship with Estonia ?
(Q191,P530,Q408)
action is_in
entity Q408
action find
entity Q191
relation P530
['Q191', 'P530', 'Q408']
ASK WHERE { resource:Q191 property:P530 resource:Q408 }
Estonia Australia
action is_in
entity Australia
action find
entity Estonia
relation diplomatic relation
['Estonia', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Estonia property:diplomatic_relation resource:Australia }
[]
political territorial entity
SYSTEM
YES
(Q191,P530,Q408)
action is_in
entity Q408
action find
entity Q191
relation P530
[ANSWER]
['Q191', 'P530', 'Q408']
ASK WHERE { resource:Q191 property:P530 resource:Q408 }
Yes
action is_in
entity Australia
action find
entity Estonia
relation diplomatic relation
['Estonia', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Estonia property:diplomatic_relation resource:Australia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P655
Q502895 Q234460 Q571
USER
How many people are the translator of approximately 4 texts or books ?
(c(Q234460)|c(Q571),P655,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P655
type Q502895
type Q571
value 4
[[{'concept': 'Q234460'}, {'concept': 'Q571'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?h WHERE { { ?n property:P655 ?h . ?h rdf:type ontology:Q502895 . ?n rdf:type ontology:Q571 } UNION { ?n rdf:type ontology:Q234460 . ?h rdf:type ontology:Q502895 . ?n property:P655 ?h } } GROUP BY ?h } . FILTER ( ?l = 4 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation translator
type common name
type text
action find_reverse_tuple_counts
relation translator
type common name
type book
value 4
[[{'concept': 'text'}, {'concept': 'book'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?h WHERE { { ?n property:translator ?h . ?h rdf:type ontology:common_name . ?n rdf:type ontology:book } UNION { ?n rdf:type ontology:text . ?h rdf:type ontology:common_name . ?n property:translator ?h } } GROUP BY ?h } . FILTER ( ?l = 4 ) }
[]
common name text book
SYSTEM
3
Q3156735 Q532457 Q1287990
(c(Q234460)|c(Q571),P655,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P655
type Q502895
type Q571
value 4
[ANSWER]
[[{'concept': 'Q234460'}, {'concept': 'Q571'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?h WHERE { { ?n property:P655 ?h . ?h rdf:type ontology:Q502895 . ?n rdf:type ontology:Q571 } UNION { ?n rdf:type ontology:Q234460 . ?h rdf:type ontology:Q502895 . ?n property:P655 ?h } } GROUP BY ?h } . FILTER ( ?l = 4 ) }
J.-Wladimir Bienstock Edward FitzGerald James Legge
3
action count
action approx
action union
action find_reverse_tuple_counts
relation translator
type common name
type text
action find_reverse_tuple_counts
relation translator
type common name
type book
value 4
[[{'concept': 'text'}, {'concept': 'book'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?h WHERE { { ?n property:translator ?h . ?h rdf:type ontology:common_name . ?n rdf:type ontology:book } UNION { ?n rdf:type ontology:text . ?h rdf:type ontology:common_name . ?n property:translator ?h } } GROUP BY ?h } . FILTER ( ?l = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18640534 Q408
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with Australia or do Karl Suneson belong to ?
OR((Q408,P530,c(Q15617994)), (Q18640534,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q18640534
relation P27
type Q15617994
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q18640534', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q18640534 property:P27 ?k } UNION { resource:Q408 property:P530 ?k } } . ?k rdf:type ontology:Q15617994 }
Karl Suneson Australia
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Karl Suneson
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Karl Suneson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Karl_Suneson property:country_of_citizenship ?k } UNION { resource:Australia property:diplomatic_relation ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414 Q1020 Q711 Q36 Q1036 Q159 Q854 Q215 Q155 Q754
SYSTEM
Some of them are Argentina, Malawi, Mongolia, Poland, Uganda, Russia, Sri Lanka, Slovenia, Brazil, Trinidad and Tobago
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q712 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q29 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q819 Q678 Q33788 Q869 Q953
OR((Q408,P530,c(Q15617994)), (Q18640534,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q18640534
relation P27
type Q15617994
[ANSWERS] hold diplomatic relationship with Australia or do Karl Suneson belong to
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q18640534', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q18640534 property:P27 ?k } UNION { resource:Q408 property:P530 ?k } } . ?k rdf:type ontology:Q15617994 }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Fiji Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Spain Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Laos Tonga New Caledonia Thailand Zambia
Argentina, Malawi, Mongolia, Poland, Uganda, Russia, Sri Lanka, Slovenia, Brazil and Trinidad and Tobago hold diplomatic relationship with Australia or do Karl Suneson belong to
Argentina Malawi Mongolia Poland Uganda Russia Sri Lanka Slovenia Brazil Trinidad and Tobago
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Karl Suneson
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Karl Suneson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Karl_Suneson property:country_of_citizenship ?k } UNION { resource:Australia property:diplomatic_relation ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1624023
P530
Q1048835
USER
Do Monda have ambassadorial relations with those administrative territories ?
(Q1624023,P530,Q414) (Q1624023,P530,Q1020) (Q1624023,P530,Q711) (Q1624023,P530,Q36) (Q1624023,P530,Q1036) (Q1624023,P530,Q159) (Q1624023,P530,Q854) (Q1624023,P530,Q215) (Q1624023,P530,Q155) (Q1624023,P530,Q754)
action is_in
entity prev_answer
action find
entity Q1624023
relation P530
['Q1624023', 'P530', 'Q414'] ['Q1624023', 'P530', 'Q1020'] ['Q1624023', 'P530', 'Q711'] ['Q1624023', 'P530', 'Q36'] ['Q1624023', 'P530', 'Q1036'] ['Q1624023', 'P530', 'Q159'] ['Q1624023', 'P530', 'Q854'] ['Q1624023', 'P530', 'Q215'] ['Q1624023', 'P530', 'Q155'] ['Q1624023', 'P530', 'Q754']
ASK WHERE { resource:Q1624023 property:P530 ?c . VALUES ( ?c ) { ( resource:Q702 ) ( resource:Q801 ) ( resource:Q800 ) } }
Monda
action is_in
entity prev_answer
action find
entity Monda
relation diplomatic relation
['Monda', 'diplomatic relation', 'Argentina'] ['Monda', 'diplomatic relation', 'Malawi'] ['Monda', 'diplomatic relation', 'Mongolia'] ['Monda', 'diplomatic relation', 'Poland'] ['Monda', 'diplomatic relation', 'Uganda'] ['Monda', 'diplomatic relation', 'Russia'] ['Monda', 'diplomatic relation', 'Sri Lanka'] ['Monda', 'diplomatic relation', 'Slovenia'] ['Monda', 'diplomatic relation', 'Brazil'] ['Monda', 'diplomatic relation', 'Trinidad and Tobago']
ASK WHERE { resource:Monda property:diplomatic_relation ?c . VALUES ( ?c ) { ( resource:Federated_States_of_Micronesia ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
political territorial entity
SYSTEM
NO
(Q1624023,P530,Q414) (Q1624023,P530,Q1020) (Q1624023,P530,Q711) (Q1624023,P530,Q36) (Q1624023,P530,Q1036) (Q1624023,P530,Q159) (Q1624023,P530,Q854) (Q1624023,P530,Q215) (Q1624023,P530,Q155) (Q1624023,P530,Q754)
action is_in
entity prev_answer
action find
entity Q1624023
relation P530
[ANSWER]
['Q1624023', 'P530', 'Q414'] ['Q1624023', 'P530', 'Q1020'] ['Q1624023', 'P530', 'Q711'] ['Q1624023', 'P530', 'Q36'] ['Q1624023', 'P530', 'Q1036'] ['Q1624023', 'P530', 'Q159'] ['Q1624023', 'P530', 'Q854'] ['Q1624023', 'P530', 'Q215'] ['Q1624023', 'P530', 'Q155'] ['Q1624023', 'P530', 'Q754']
ASK WHERE { resource:Q1624023 property:P530 ?c . VALUES ( ?c ) { ( resource:Q702 ) ( resource:Q801 ) ( resource:Q800 ) } }
No
action is_in
entity prev_answer
action find
entity Monda
relation diplomatic relation
['Monda', 'diplomatic relation', 'Argentina'] ['Monda', 'diplomatic relation', 'Malawi'] ['Monda', 'diplomatic relation', 'Mongolia'] ['Monda', 'diplomatic relation', 'Poland'] ['Monda', 'diplomatic relation', 'Uganda'] ['Monda', 'diplomatic relation', 'Russia'] ['Monda', 'diplomatic relation', 'Sri Lanka'] ['Monda', 'diplomatic relation', 'Slovenia'] ['Monda', 'diplomatic relation', 'Brazil'] ['Monda', 'diplomatic relation', 'Trinidad and Tobago']
ASK WHERE { resource:Monda property:diplomatic_relation ?c . VALUES ( ?c ) { ( resource:Federated_States_of_Micronesia ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q5331730 Q359903
P106
Q12737077
USER
Which occupations are the professions of Ado Grenzstein and Ebenezer Prout ?
AND((Q359903,P106,c(Q12737077)), (Q5331730,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q359903
relation P106
action find
entity Q5331730
relation P106
type Q12737077
{'AND': [['Q359903', 'P106', {'concept': 'Q12737077'}], ['Q5331730', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { resource:Q5331730 property:P106 ?s . resource:Q359903 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Ebenezer Prout Ado Grenzstein
action filter_type
action intersection
action find
entity Ado Grenzstein
relation occupation
action find
entity Ebenezer Prout
relation occupation
type occupation
{'AND': [['Ado Grenzstein', 'occupation', {'concept': 'occupation'}], ['Ebenezer Prout', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { resource:Ebenezer_Prout property:occupation ?s . resource:Ado_Grenzstein property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
AND((Q359903,P106,c(Q12737077)), (Q5331730,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q359903
relation P106
action find
entity Q5331730
relation P106
type Q12737077
The professions of Ado Grenzstein and Ebenezer Prout are a [ANSWER]
{'AND': [['Q359903', 'P106', {'concept': 'Q12737077'}], ['Q5331730', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { resource:Q5331730 property:P106 ?s . resource:Q359903 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
writer
The professions of Ado Grenzstein and Ebenezer Prout are a writer
writer
action filter_type
action intersection
action find
entity Ado Grenzstein
relation occupation
action find
entity Ebenezer Prout
relation occupation
type occupation
{'AND': [['Ado Grenzstein', 'occupation', {'concept': 'occupation'}], ['Ebenezer Prout', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { resource:Ebenezer_Prout property:occupation ?s . resource:Ado_Grenzstein property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P101
Q12737077 Q2342494
USER
How many occupations are the fields of work of greater number of collectables than that occupation ?
(c(Q2342494),P101,c(Q12737077))
action count
action greater
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_type
action find
entity Q36180
relation P101
type Q12737077
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P101 ?h . ?h rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q2342494 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:Q12737077 . resource:Q36180 property:P101 ?m } } . FILTER ( ?o > ?f ) }
action count
action greater
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_type
action find
entity writer
relation field of work
type occupation
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:field_of_work ?h . ?h rdf:type ontology:occupation . ?p rdf:type ontology:collectable } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:occupation . resource:writer property:field_of_work ?m } } . FILTER ( ?o > ?f ) }
[]
occupation collectable
SYSTEM
1
Q15954519
(c(Q2342494),P101,c(Q12737077))
action count
action greater
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_type
action find
entity Q36180
relation P101
type Q12737077
[ANSWER]
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P101 ?h . ?h rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q2342494 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:Q12737077 . resource:Q36180 property:P101 ?m } } . FILTER ( ?o > ?f ) }
alchemist
1
action count
action greater
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_type
action find
entity writer
relation field of work
type occupation
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:field_of_work ?h . ?h rdf:type ontology:occupation . ?p rdf:type ontology:collectable } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:occupation . resource:writer property:field_of_work ?m } } . FILTER ( ?o > ?f ) }
[]