Simple Question (Direct)
Simple Question
Q9139471
P1412
Q34770
USER
Which language can Adam Czerniawski read ?
(Q9139471,P1412,c(Q34770))
action filter_type
action find
entity Q9139471
relation P1412
type Q34770
['Q9139471', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q9139471 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Adam Czerniawski
action filter_type
action find
entity Adam Czerniawski
relation languages spoken, written or signed
type language
['Adam Czerniawski', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Adam_Czerniawski property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q9139471,P1412,c(Q34770))
action filter_type
action find
entity Q9139471
relation P1412
type Q34770
Adam Czerniawski can read in [ANSWER]
['Q9139471', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q9139471 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
English
Adam Czerniawski can read in English
English
action filter_type
action find
entity Adam Czerniawski
relation languages spoken, written or signed
type language
['Adam Czerniawski', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Adam_Czerniawski property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9139471
P27
Q15617994
USER
Which administrative territory is the native country of Adam Czerniawski ?
(Q9139471,P27,c(Q15617994))
action filter_type
action find
entity Q9139471
relation P27
type Q15617994
['Q9139471', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q9139471 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Adam Czerniawski
action filter_type
action find
entity Adam Czerniawski
relation country of citizenship
type designation for an administrative territorial entity
['Adam Czerniawski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Adam_Czerniawski property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q9139471,P27,c(Q15617994))
action filter_type
action find
entity Q9139471
relation P27
type Q15617994
[ANSWER] is the native country of Adam Czerniawski
['Q9139471', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q9139471 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Poland
Poland is the native country of Adam Czerniawski
Poland
action filter_type
action find
entity Adam Czerniawski
relation country of citizenship
type designation for an administrative territorial entity
['Adam Czerniawski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Adam_Czerniawski property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9139471
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q36,P106,c(Q12737077))
action filter_type
action find
entity Q9139471
relation P106
type Q12737077
['Q36', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q9139471 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Adam Czerniawski
action filter_type
action find
entity Adam Czerniawski
relation occupation
type occupation
['Poland', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Adam_Czerniawski property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q36,P106,c(Q12737077))
action filter_type
action find
entity Q9139471
relation P106
type Q12737077
The [ANSWER] is the profession of that person
['Q36', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q9139471 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
writer
The writer is the profession of that person
writer
action filter_type
action find
entity Adam Czerniawski
relation occupation
type occupation
['Poland', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Adam_Czerniawski property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36 Q771
P1313
Q12737077
USER
How many occupations serve as the political office that are fulfilled by the head of the government of Poland or Massachusetts ?
(Q36,P1313,c(Q12737077)) (Q771,P1313,c(Q12737077))
action count
action union
action filter_type
action find
entity Q36
relation P1313
type Q12737077
action filter_type
action find
entity Q771
relation P1313
type Q12737077
['Q36', 'P1313', {'concept': 'Q12737077'}] ['Q771', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { ?w rdf:type ontology:Q12737077 . resource:Q36 property:P1313 ?w } UNION { ?w rdf:type ontology:Q12737077 . resource:Q771 property:P1313 ?w } }
Poland Massachusetts
action count
action union
action filter_type
action find
entity Poland
relation office held by head of government
type occupation
action filter_type
action find
entity Massachusetts
relation office held by head of government
type occupation
['Poland', 'office held by head of government', {'concept': 'occupation'}] ['Massachusetts', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { ?w rdf:type ontology:occupation . resource:Poland property:office_held_by_head_of_government ?w } UNION { ?w rdf:type ontology:occupation . resource:Massachusetts property:office_held_by_head_of_government ?w } }
[]
occupation
SYSTEM
2
Q887117 Q1054799
(Q36,P1313,c(Q12737077)) (Q771,P1313,c(Q12737077))
action count
action union
action filter_type
action find
entity Q36
relation P1313
type Q12737077
action filter_type
action find
entity Q771
relation P1313
type Q12737077
[ANSWER]
['Q36', 'P1313', {'concept': 'Q12737077'}] ['Q771', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { ?w rdf:type ontology:Q12737077 . resource:Q36 property:P1313 ?w } UNION { ?w rdf:type ontology:Q12737077 . resource:Q771 property:P1313 ?w } }
Governor of Massachusetts President of Poland
2
action count
action union
action filter_type
action find
entity Poland
relation office held by head of government
type occupation
action filter_type
action find
entity Massachusetts
relation office held by head of government
type occupation
['Poland', 'office held by head of government', {'concept': 'occupation'}] ['Massachusetts', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { ?w rdf:type ontology:occupation . resource:Poland property:office_held_by_head_of_government ?w } UNION { ?w rdf:type ontology:occupation . resource:Massachusetts property:office_held_by_head_of_government ?w } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q2342494 Q191067
USER
How many occupations were the main subjects of exactly 1 collectables or articles 's work ?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?b ) WHERE { { ?o property:P921 ?e . ?e rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q2342494 } UNION { ?e rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q191067 . ?o property:P921 ?e } } GROUP BY ?e } }
action count
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 1
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?b ) WHERE { { ?o property:main_subject ?e . ?e rdf:type ontology:occupation . ?o rdf:type ontology:collectable } UNION { ?e rdf:type ontology:occupation . ?o rdf:type ontology:article . ?o property:main_subject ?e } } GROUP BY ?e } }
[]
occupation collectable article
SYSTEM
23
Q172907 Q774306 Q83307 Q4610556 Q18145518 Q82955 Q730242 Q42973 Q9402 Q43845 Q316070 Q29182 Q510373 Q131524 Q14373094 Q152002 Q18220900 Q16003605 Q732358 Q49757 Q1238570 Q182436 Q2259532
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 1
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?b ) WHERE { { ?o property:P921 ?e . ?e rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q2342494 } UNION { ?e rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q191067 . ?o property:P921 ?e } } GROUP BY ?e } }
praetor surgeon minister model Member of the New Zealand House of Representatives politician test pilot architect ninja businessperson Fletcher Christian bishop Lord High Steward entrepreneur rugby league player pastor Member of the South Australian House of Assembly elementary school student Nomarch poet political scientist librarian cleric
23
action count
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 1
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?b ) WHERE { { ?o property:main_subject ?e . ?e rdf:type ontology:occupation . ?o rdf:type ontology:collectable } UNION { ?e rdf:type ontology:occupation . ?o rdf:type ontology:article . ?o property:main_subject ?e } } GROUP BY ?e } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9139471
P166
Q618779
USER
Which award was Adam Czerniawski awarded with ?
(Q9139471,P166,c(Q618779))
action filter_type
action find
entity Q9139471
relation P166
type Q618779
['Q9139471', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?a WHERE { resource:Q9139471 property:P166 ?a . ?a rdf:type ontology:Q618779 }
Adam Czerniawski
action filter_type
action find
entity Adam Czerniawski
relation award received
type award
['Adam Czerniawski', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?a WHERE { resource:Adam_Czerniawski property:award_received ?a . ?a rdf:type ontology:award }
[]
award
Q474063
SYSTEM
Kościelski Award
Q474063
(Q9139471,P166,c(Q618779))
action filter_type
action find
entity Q9139471
relation P166
type Q618779
Adam Czerniawski was awarded the [ANSWER]
['Q9139471', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?a WHERE { resource:Q9139471 property:P166 ?a . ?a rdf:type ontology:Q618779 }
Kościelski Award
Adam Czerniawski was awarded the Kościelski Award
Kościelski Award
action filter_type
action find
entity Adam Czerniawski
relation award received
type award
['Adam Czerniawski', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?a WHERE { resource:Adam_Czerniawski property:award_received ?a . ?a rdf:type ontology:award }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2845627
Q618779
USER
And what about Anatoli Komaritsyne?
(Q2845627,P166,c(Q618779))
action filter_type
action find
entity Q2845627
relation P166
type Q618779
['Q2845627', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { resource:Q2845627 property:P166 ?u . ?u rdf:type ontology:Q618779 }
Anatoli Komaritsyne
action filter_type
action find
entity Anatoli Komaritsyne
relation award received
type award
['Anatoli Komaritsyne', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { resource:Anatoli_Komaritsyne property:award_received ?u . ?u rdf:type ontology:award }
[]
award
Q18204156 Q695106 Q1986005
SYSTEM
Order for Service to the Homeland in the Armed Forces of the USSR, 3rd class, Order of the Red Star, Medal of Zhukov
Q18204156 Q695106 Q1986005
(Q2845627,P166,c(Q618779))
action filter_type
action find
entity Q2845627
relation P166
type Q618779
[ANSWERS]
['Q2845627', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { resource:Q2845627 property:P166 ?u . ?u rdf:type ontology:Q618779 }
Order for Service to the Homeland in the Armed Forces of the USSR, 3rd class Order of the Red Star Medal of Zhukov
Order for Service to the Homeland in the Armed Forces of the USSR, 3rd class Order of the Red Star Medal of Zhukov
action filter_type
action find
entity Anatoli Komaritsyne
relation award received
type award
['Anatoli Komaritsyne', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { resource:Anatoli_Komaritsyne property:award_received ?u . ?u rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7384640
P166
Q502895
USER
Were Ryan Wieber honoured with those awards ?
(Q7384640,P166,Q18204156) (Q7384640,P166,Q695106) (Q7384640,P166,Q1986005)
action is_in
entity prev_answer
action find
entity Q7384640
relation P166
['Q7384640', 'P166', 'Q18204156'] ['Q7384640', 'P166', 'Q695106'] ['Q7384640', 'P166', 'Q1986005']
ASK WHERE { resource:Q7384640 property:P166 ?p . VALUES ( ?p ) { ( resource:Q18204156 ) ( resource:Q695106 ) ( resource:Q1986005 ) } }
Ryan Wieber
action is_in
entity prev_answer
action find
entity Ryan Wieber
relation award received
['Ryan Wieber', 'award received', 'Order for Service to the Homeland in the Armed Forces of the USSR, 3rd class'] ['Ryan Wieber', 'award received', 'Order of the Red Star'] ['Ryan Wieber', 'award received', 'Medal of Zhukov']
ASK WHERE { resource:Ryan_Wieber property:award_received ?p . VALUES ( ?p ) { ( resource:Order_for_Service_to_the_Homeland_in_the_Armed_Forces_of_the_USSR,_3rd_class ) ( resource:Order_of_the_Red_Star ) ( resource:Medal_of_Zhukov ) } }
[]
common name
SYSTEM
NO
(Q7384640,P166,Q18204156) (Q7384640,P166,Q695106) (Q7384640,P166,Q1986005)
action is_in
entity prev_answer
action find
entity Q7384640
relation P166
[ANSWER]
['Q7384640', 'P166', 'Q18204156'] ['Q7384640', 'P166', 'Q695106'] ['Q7384640', 'P166', 'Q1986005']
ASK WHERE { resource:Q7384640 property:P166 ?p . VALUES ( ?p ) { ( resource:Q18204156 ) ( resource:Q695106 ) ( resource:Q1986005 ) } }
No
action is_in
entity prev_answer
action find
entity Ryan Wieber
relation award received
['Ryan Wieber', 'award received', 'Order for Service to the Homeland in the Armed Forces of the USSR, 3rd class'] ['Ryan Wieber', 'award received', 'Order of the Red Star'] ['Ryan Wieber', 'award received', 'Medal of Zhukov']
ASK WHERE { resource:Ryan_Wieber property:award_received ?p . VALUES ( ?p ) { ( resource:Order_for_Service_to_the_Homeland_in_the_Armed_Forces_of_the_USSR,_3rd_class ) ( resource:Order_of_the_Red_Star ) ( resource:Medal_of_Zhukov ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q123663 Q9139471
P19
Q56061
USER
Which administrative territories are the places of birth of Adam Czerniawski or Ludwig Georg Courvoisier ?
OR((Q9139471,P19,c(Q56061)), (Q123663,P19,c(Q56061)))
action filter_type
action union
action find
entity Q9139471
relation P19
action find
entity Q123663
relation P19
type Q56061
{'OR': [['Q9139471', 'P19', {'concept': 'Q56061'}], ['Q123663', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . { VALUES ( ?c ) { ( resource:Q123663 ) ( resource:Q9139471 ) } . ?c property:P19 ?e } }
Ludwig Georg Courvoisier Adam Czerniawski
action filter_type
action union
action find
entity Adam Czerniawski
relation place of birth
action find
entity Ludwig Georg Courvoisier
relation place of birth
type administrative territorial entity
{'OR': [['Adam Czerniawski', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ludwig Georg Courvoisier', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . { VALUES ( ?c ) { ( resource:Ludwig_Georg_Courvoisier ) ( resource:Adam_Czerniawski ) } . ?c property:place_of_birth ?e } }
[]
administrative territorial entity
Q270 Q78
SYSTEM
Warsaw, Basel
Q270 Q78
OR((Q9139471,P19,c(Q56061)), (Q123663,P19,c(Q56061)))
action filter_type
action union
action find
entity Q9139471
relation P19
action find
entity Q123663
relation P19
type Q56061
[ANSWERS] are the places of birth of Adam Czerniawski or Ludwig Georg Courvoisier
{'OR': [['Q9139471', 'P19', {'concept': 'Q56061'}], ['Q123663', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . { VALUES ( ?c ) { ( resource:Q123663 ) ( resource:Q9139471 ) } . ?c property:P19 ?e } }
Warsaw Basel
Warsaw and Basel are the places of birth of Adam Czerniawski or Ludwig Georg Courvoisier
Warsaw Basel
action filter_type
action union
action find
entity Adam Czerniawski
relation place of birth
action find
entity Ludwig Georg Courvoisier
relation place of birth
type administrative territorial entity
{'OR': [['Adam Czerniawski', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ludwig Georg Courvoisier', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . { VALUES ( ?c ) { ( resource:Ludwig_Georg_Courvoisier ) ( resource:Adam_Czerniawski ) } . ?c property:place_of_birth ?e } }
[]