Simple Question (Direct)
Simple Question
Q3569589
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Wojciech Grzyb ?
(Q3569589,P27,c(Q15617994))
action filter_type
action find
entity Q3569589
relation P27
type Q15617994
['Q3569589', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q3569589 property:P27 ?t }
Wojciech Grzyb
action filter_type
action find
entity Wojciech Grzyb
relation country of citizenship
type designation for an administrative territorial entity
['Wojciech Grzyb', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wojciech_Grzyb property:country_of_citizenship ?t }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q3569589,P27,c(Q15617994))
action filter_type
action find
entity Q3569589
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Wojciech Grzyb
['Q3569589', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q3569589 property:P27 ?t }
Poland
Poland is the country of citizenship of Wojciech Grzyb
Poland
action filter_type
action find
entity Wojciech Grzyb
relation country of citizenship
type designation for an administrative territorial entity
['Wojciech Grzyb', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wojciech_Grzyb property:country_of_citizenship ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3569589
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q36,P106,c(Q12737077))
action filter_type
action find
entity Q3569589
relation P106
type Q12737077
['Q36', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3569589 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Wojciech Grzyb
action filter_type
action find
entity Wojciech Grzyb
relation occupation
type occupation
['Poland', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Wojciech_Grzyb property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q36,P106,c(Q12737077))
action filter_type
action find
entity Q3569589
relation P106
type Q12737077
Player [ANSWER] is the profession of that person
['Q36', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3569589 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of that person
association football player
action filter_type
action find
entity Wojciech Grzyb
relation occupation
type occupation
['Poland', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Wojciech_Grzyb property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q937857 Q2887217 Q2736
P425
Q349
USER
Does women's basketball and association football belong to Q937857 ?
(Q937857,P425,Q2887217) (Q937857,P425,Q2736)
action is_in
entity Q937857
action intersection
action find_reverse
entity Q2887217
relation P425
action find_reverse
entity Q2736
relation P425
['Q937857', 'P425', 'Q2887217'] ['Q937857', 'P425', 'Q2736']
ASK WHERE { resource:Q937857 property:P425 resource:Q2887217 . resource:Q937857 property:P425 resource:Q2736 }
association football player women's basketball association football
action is_in
entity association football player
action intersection
action find_reverse
entity women's basketball
relation field of this occupation
action find_reverse
entity association football
relation field of this occupation
['association football player', 'field of this occupation', "women's basketball"] ['association football player', 'field of this occupation', 'association football']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:women's_basketball . resource:association_football_player property:field_of_this_occupation resource:association_football }
[]
sport
SYSTEM
NO and YES respectively
(Q937857,P425,Q2887217) (Q937857,P425,Q2736)
action is_in
entity Q937857
action intersection
action find_reverse
entity Q2887217
relation P425
action find_reverse
entity Q2736
relation P425
[ANSWER]
['Q937857', 'P425', 'Q2887217'] ['Q937857', 'P425', 'Q2736']
ASK WHERE { resource:Q937857 property:P425 resource:Q2887217 . resource:Q937857 property:P425 resource:Q2736 }
NO and YES respectively
action is_in
entity association football player
action intersection
action find_reverse
entity women's basketball
relation field of this occupation
action find_reverse
entity association football
relation field of this occupation
['association football player', 'field of this occupation', "women's basketball"] ['association football player', 'field of this occupation', 'association football']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:women's_basketball . resource:association_football_player property:field_of_this_occupation resource:association_football }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3315094
P921
Q12737077 Q2342494 Q191067
USER
How many occupations were the main subjects of approximately the same number of collectables and articles 's work as Prime Minister of Hungary ?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q3315094
relation P921
type Q2342494
type Q191067
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?a ) WHERE { { ?l rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q2342494 . ?w property:P921 ?l } UNION { ?w property:P921 ?l . ?l rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q191067 } } GROUP BY ?l } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:P921 resource:Q3315094 . { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } } } }
Prime Minister of Hungary
action count
action approx
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
action count
action filter_multi_types
action find_reverse
entity Prime Minister of Hungary
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?a ) WHERE { { ?l rdf:type ontology:occupation . ?w rdf:type ontology:collectable . ?w property:main_subject ?l } UNION { ?w property:main_subject ?l . ?l rdf:type ontology:occupation . ?w rdf:type ontology:article } } GROUP BY ?l } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:main_subject resource:Prime_Minister_of_Hungary . { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:collectable ) ( ontology:article ) } } } } }
[]
occupation collectable article
SYSTEM
74
Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q3809586 Q3315094 Q622807 Q7358 Q131512 Q1708232 Q2094335 Q842782 Q378622 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q486839 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q17143199 Q384593 Q2095549 Q372436 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q3315094
relation P921
type Q2342494
type Q191067
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?a ) WHERE { { ?l rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q2342494 . ?w property:P921 ?l } UNION { ?w property:P921 ?l . ?l rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q191067 } } GROUP BY ?l } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:P921 resource:Q3315094 . { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } } } }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer Wikipedian in Residence Prime Minister of Hungary seiyū clown farmer medallist United States Attorney detective racing driver Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate taxi driver gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier member of parliament violist Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil artist cartoonist judge nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor comedian photographer peasant missionary United States federal judge musician medical examiner police officer aviator statesman rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
74
action count
action approx
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
action count
action filter_multi_types
action find_reverse
entity Prime Minister of Hungary
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?a ) WHERE { { ?l rdf:type ontology:occupation . ?w rdf:type ontology:collectable . ?w property:main_subject ?l } UNION { ?w property:main_subject ?l . ?l rdf:type ontology:occupation . ?w rdf:type ontology:article } } GROUP BY ?l } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:main_subject resource:Prime_Minister_of_Hungary . { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:collectable ) ( ontology:article ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2961580
P921
Q12737077 Q2342494 Q191067
USER
And also tell me about taxi driver?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q2961580
relation P921
type Q2342494
type Q191067
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?l WHERE { { ?r property:P921 ?l . ?l rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q191067 } UNION { ?r property:P921 ?l . ?r rdf:type ontology:Q2342494 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { { ?x rdf:type ontology:Q2342494 } UNION { ?x rdf:type ontology:Q191067 } } . ?x property:P921 resource:Q2961580 } } . FILTER ( ?u = ?o ) }
taxi driver
action count
action approx
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
action count
action filter_multi_types
action find_reverse
entity taxi driver
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?l WHERE { { ?r property:main_subject ?l . ?l rdf:type ontology:occupation . ?r rdf:type ontology:article } UNION { ?r property:main_subject ?l . ?r rdf:type ontology:collectable . ?l rdf:type ontology:occupation } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { { ?x rdf:type ontology:collectable } UNION { ?x rdf:type ontology:article } } . ?x property:main_subject resource:taxi_driver } } . FILTER ( ?u = ?o ) }
[]
occupation collectable article
SYSTEM
74
Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q3809586 Q3315094 Q622807 Q7358 Q131512 Q1708232 Q2094335 Q842782 Q378622 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q486839 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q17143199 Q384593 Q2095549 Q372436 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q2961580
relation P921
type Q2342494
type Q191067
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?l WHERE { { ?r property:P921 ?l . ?l rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q191067 } UNION { ?r property:P921 ?l . ?r rdf:type ontology:Q2342494 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { { ?x rdf:type ontology:Q2342494 } UNION { ?x rdf:type ontology:Q191067 } } . ?x property:P921 resource:Q2961580 } } . FILTER ( ?u = ?o ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer Wikipedian in Residence Prime Minister of Hungary seiyū clown farmer medallist United States Attorney detective racing driver Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate taxi driver gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier member of parliament violist Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil artist cartoonist judge nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor comedian photographer peasant missionary United States federal judge musician medical examiner police officer aviator statesman rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
74
action count
action approx
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
action count
action filter_multi_types
action find_reverse
entity taxi driver
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?l WHERE { { ?r property:main_subject ?l . ?l rdf:type ontology:occupation . ?r rdf:type ontology:article } UNION { ?r property:main_subject ?l . ?r rdf:type ontology:collectable . ?l rdf:type ontology:occupation } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { { ?x rdf:type ontology:collectable } UNION { ?x rdf:type ontology:article } } . ?x property:main_subject resource:taxi_driver } } . FILTER ( ?u = ?o ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q34 Q36
P27
Q502895
USER
Which people are civilians of Poland and Sweden ?
AND((c(Q502895),P27,Q36), (c(Q502895),P27,Q34))
action filter_type
action intersection
action find_reverse
entity Q36
relation P27
action find_reverse
entity Q34
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q36'], [{'concept': 'Q502895'}, 'P27', 'Q34']]}
SELECT DISTINCT ?q WHERE { ?q property:P27 resource:Q36 . ?q property:P27 resource:Q34 . ?q rdf:type ontology:Q502895 }
Sweden Poland
action filter_type
action intersection
action find_reverse
entity Poland
relation country of citizenship
action find_reverse
entity Sweden
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Poland'], [{'concept': 'common name'}, 'country of citizenship', 'Sweden']]}
SELECT DISTINCT ?q WHERE { ?q property:country_of_citizenship resource:Poland . ?q property:country_of_citizenship resource:Sweden . ?q rdf:type ontology:common_name }
[]
common name
Q18244051 Q469783 Q468037 Q603265 Q645306 Q4972891 Q15992181 Q4678787 Q3809255 Q2587680
SYSTEM
Some of them are Sebastian Ludzik, Anna Vasa of Sweden, Jürgen von Farensbach, Michal Leszczylowski, Ivo Pękalski, Małgorzata Pieczyńska, Jan Mizerski, Adam Bromberg, Joanna Troikowicz, Dominika Peczynski
Q4497106 Q18244051 Q4972891 Q645306 Q15992181 Q4354057 Q715765 Q468037 Q447328 Q2587680 Q705427 Q316519 Q603265 Q577896 Q1686032 Q4505004 Q4678787 Q230055 Q469783 Q937309 Q655548 Q4994466 Q3809255
AND((c(Q502895),P27,Q36), (c(Q502895),P27,Q34))
action filter_type
action intersection
action find_reverse
entity Q36
relation P27
action find_reverse
entity Q34
relation P27
type Q502895
[ANSWERS] are civilians of Poland and Sweden
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q36'], [{'concept': 'Q502895'}, 'P27', 'Q34']]}
SELECT DISTINCT ?q WHERE { ?q property:P27 resource:Q36 . ?q property:P27 resource:Q34 . ?q rdf:type ontology:Q502895 }
Adam Heymowski Sebastian Ludzik Małgorzata Pieczyńska Ivo Pękalski Jan Mizerski August Maximilian Myhrberg Czesław Słania Jürgen von Farensbach Stefan Liv Dominika Peczynski Johann Patkul Jerzy Einhorn Michal Leszczylowski Peter Jablonski Piotr Mokrosiński Slawomir Rynkiewicz Adam Bromberg Izabella Scorupco Anna Vasa of Sweden Jozef Lewandowski Karol Ferdynand Vasa Tomasz Neuman Joanna Troikowicz
Sebastian Ludzik, Anna Vasa of Sweden, Jürgen von Farensbach, Michal Leszczylowski, Ivo Pękalski, Małgorzata Pieczyńska, Jan Mizerski, Adam Bromberg, Joanna Troikowicz and Dominika Peczynski are civilians of Poland and Sweden
Sebastian Ludzik Anna Vasa of Sweden Jürgen von Farensbach Michal Leszczylowski Ivo Pękalski Małgorzata Pieczyńska Jan Mizerski Adam Bromberg Joanna Troikowicz Dominika Peczynski
action filter_type
action intersection
action find_reverse
entity Poland
relation country of citizenship
action find_reverse
entity Sweden
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Poland'], [{'concept': 'common name'}, 'country of citizenship', 'Sweden']]}
SELECT DISTINCT ?q WHERE { ?q property:country_of_citizenship resource:Poland . ?q property:country_of_citizenship resource:Sweden . ?q rdf:type ontology:common_name }
[]