Simple Question (Direct)
Simple Question
Q359413
P9
Q502895
USER
Who is the sister of Adnan Khairallah ?
(Q359413,P9,c(Q502895))
action filter_type
action find
entity Q359413
relation P9
type Q502895
['Q359413', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q359413 property:P9 ?k . ?k rdf:type ontology:Q502895 }
Adnan Khairallah
action filter_type
action find
entity Adnan Khairallah
relation sister
type common name
['Adnan Khairallah', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Adnan_Khairallah property:sister ?k . ?k rdf:type ontology:common_name }
[]
common name
Q253660
SYSTEM
Sajida Talfah
Q253660
(Q359413,P9,c(Q502895))
action filter_type
action find
entity Q359413
relation P9
type Q502895
The sister of Adnan Khairallah is called [ANSWER]
['Q359413', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q359413 property:P9 ?k . ?k rdf:type ontology:Q502895 }
Sajida Talfah
The sister of Adnan Khairallah is called Sajida Talfah
Sajida Talfah
action filter_type
action find
entity Adnan Khairallah
relation sister
type common name
['Adnan Khairallah', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Adnan_Khairallah property:sister ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q253660
P26
Q502895
USER
Who is married to that one ?
(c(Q502895),P26,Q253660)
action filter_type
action find
entity Q253660
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q253660']
SELECT DISTINCT ?b WHERE { resource:Q253660 property:P26 ?b . ?b rdf:type ontology:Q502895 }
Sajida Talfah
action filter_type
action find
entity Sajida Talfah
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Sajida Talfah']
SELECT DISTINCT ?b WHERE { resource:Sajida_Talfah property:spouse ?b . ?b rdf:type ontology:common_name }
[]
common name
Q1316
SYSTEM
Saddam Hussein
Q1316
(c(Q502895),P26,Q253660)
action filter_type
action find
entity Q253660
relation P26
type Q502895
And [ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q253660']
SELECT DISTINCT ?b WHERE { resource:Q253660 property:P26 ?b . ?b rdf:type ontology:Q502895 }
Saddam Hussein
And Saddam Hussein is married to that one
Saddam Hussein
action filter_type
action find
entity Sajida Talfah
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Sajida Talfah']
SELECT DISTINCT ?b WHERE { resource:Sajida_Talfah property:spouse ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q253660
P106
Q12737077
USER
What is the job of Sajida Talfah ?
(Q253660,P106,c(Q12737077))
action filter_type
action find
entity Q253660
relation P106
type Q12737077
['Q253660', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q253660 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Sajida Talfah
action filter_type
action find
entity Sajida Talfah
relation occupation
type occupation
['Sajida Talfah', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Sajida_Talfah property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q37226
SYSTEM
teacher
Q37226
(Q253660,P106,c(Q12737077))
action filter_type
action find
entity Q253660
relation P106
type Q12737077
The job of Sajida Talfah is the [ANSWER]
['Q253660', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q253660 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
teacher
The job of Sajida Talfah is the teacher
teacher
action filter_type
action find
entity Sajida Talfah
relation occupation
type occupation
['Sajida Talfah', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Sajida_Talfah property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4795338
Q12737077
USER
And how about Arnold van Wyk?
(Q4795338,P106,c(Q12737077))
action filter_type
action find
entity Q4795338
relation P106
type Q12737077
['Q4795338', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q4795338 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Arnold van Wyk
action filter_type
action find
entity Arnold van Wyk
relation occupation
type occupation
['Arnold van Wyk', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Arnold_van_Wyk property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q4795338,P106,c(Q12737077))
action filter_type
action find
entity Q4795338
relation P106
type Q12737077
[ANSWER]
['Q4795338', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q4795338 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
composer
composer
action filter_type
action find
entity Arnold van Wyk
relation occupation
type occupation
['Arnold van Wyk', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Arnold_van_Wyk property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4795338
P69
Q2385804
USER
Which educational institution was that person educated at ?
(Q36834,P69,c(Q2385804))
action filter_type
action find
entity Q4795338
relation P69
type Q2385804
['Q36834', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q2385804 . resource:Q4795338 property:P69 ?k }
Arnold van Wyk
action filter_type
action find
entity Arnold van Wyk
relation educated at
type educational institution
['composer', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:educational_institution . resource:Arnold_van_Wyk property:educated_at ?k }
[]
educational institution
Q1144673
SYSTEM
Royal Academy of Music
Q1144673
(Q36834,P69,c(Q2385804))
action filter_type
action find
entity Q4795338
relation P69
type Q2385804
That person was educated at [ANSWER]
['Q36834', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q2385804 . resource:Q4795338 property:P69 ?k }
Royal Academy of Music
That person was educated at Royal Academy of Music
Royal Academy of Music
action filter_type
action find
entity Arnold van Wyk
relation educated at
type educational institution
['composer', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:educational_institution . resource:Arnold_van_Wyk property:educated_at ?k }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q191067 Q386724
USER
Which occupations were the main subjects of min number of articles or works 's work ?
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?d WHERE { { ?r property:P921 ?d . ?r rdf:type ontology:Q386724 . ?d rdf:type ontology:Q12737077 } UNION { ?r rdf:type ontology:Q191067 . ?d rdf:type ontology:Q12737077 . ?r property:P921 ?d } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) ?p WHERE { { ?q property:P921 ?p . ?p rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q191067 } UNION { ?q property:P921 ?p . ?p rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q386724 } } GROUP BY ?p } . FILTER ( ?a = ?h ) }
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?d WHERE { { ?r property:main_subject ?d . ?r rdf:type ontology:work . ?d rdf:type ontology:occupation } UNION { ?r rdf:type ontology:article . ?d rdf:type ontology:occupation . ?r property:main_subject ?d } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) ?p WHERE { { ?q property:main_subject ?p . ?p rdf:type ontology:occupation . ?q rdf:type ontology:article } UNION { ?q property:main_subject ?p . ?p rdf:type ontology:occupation . ?q rdf:type ontology:work } } GROUP BY ?p } . FILTER ( ?a = ?h ) }
[]
occupation article work
Q131512 Q42973 Q16707842
SYSTEM
farmer, architect, Member of Parliament in the United Kingdom
Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q2259532 Q1674312 Q361593 Q1856798 Q16707842
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
[ANSWERS] were the main subjects of min number of articles or works 's work
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?d WHERE { { ?r property:P921 ?d . ?r rdf:type ontology:Q386724 . ?d rdf:type ontology:Q12737077 } UNION { ?r rdf:type ontology:Q191067 . ?d rdf:type ontology:Q12737077 . ?r property:P921 ?d } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) ?p WHERE { { ?q property:P921 ?p . ?p rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q191067 } UNION { ?q property:P921 ?p . ?p rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q386724 } } GROUP BY ?p } . FILTER ( ?a = ?h ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect 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 association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier bishop member of parliament violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician poet medical examiner police officer aviator statesman political scientist cleric rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
Farmer, architect and Member of Parliament in the United Kingdom were the main subjects of min number of articles or works 's work
farmer architect Member of Parliament in the United Kingdom
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?d WHERE { { ?r property:main_subject ?d . ?r rdf:type ontology:work . ?d rdf:type ontology:occupation } UNION { ?r rdf:type ontology:article . ?d rdf:type ontology:occupation . ?r property:main_subject ?d } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) ?p WHERE { { ?q property:main_subject ?p . ?p rdf:type ontology:occupation . ?q rdf:type ontology:article } UNION { ?q property:main_subject ?p . ?p rdf:type ontology:occupation . ?q rdf:type ontology:work } } GROUP BY ?p } . FILTER ( ?a = ?h ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20644492 Q131512
P417 P40
Q502895
USER
Which people are the names of the patron saint of farmer or are a successors of Marie-Louise Caillé ?
OR((Q131512,P417,c(Q502895)), (Q20644492,P40,c(Q502895)))
action filter_type
action union
action find
entity Q131512
relation P417
action find
entity Q20644492
relation P40
type Q502895
{'OR': [['Q131512', 'P417', {'concept': 'Q502895'}], ['Q20644492', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q131512 property:P417 ?c } UNION { resource:Q20644492 property:P40 ?c } } . ?c rdf:type ontology:Q502895 }
Marie-Louise Caillé farmer
action filter_type
action union
action find
entity farmer
relation patron saint
action find
entity Marie-Louise Caillé
relation child
type common name
{'OR': [['farmer', 'patron saint', {'concept': 'common name'}], ['Marie-Louise Caillé', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:farmer property:patron_saint ?c } UNION { resource:Marie-Louise_Caillé property:child ?c } } . ?c rdf:type ontology:common_name }
[]
common name
Q119289 Q166876 Q151967 Q44265 Q20644428 Q43982
SYSTEM
Leonard of Port Maurice, Isidore of Seville, Saint Blaise, Benedict of Nursia, Jean Soleil, Bartholomew the Apostle
Q119289 Q166876 Q151967 Q44265 Q20644428 Q43982
OR((Q131512,P417,c(Q502895)), (Q20644492,P40,c(Q502895)))
action filter_type
action union
action find
entity Q131512
relation P417
action find
entity Q20644492
relation P40
type Q502895
[ANSWERS] are the names of the patron saint of farmer or are a successors of Marie-Louise Caillé
{'OR': [['Q131512', 'P417', {'concept': 'Q502895'}], ['Q20644492', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q131512 property:P417 ?c } UNION { resource:Q20644492 property:P40 ?c } } . ?c rdf:type ontology:Q502895 }
Leonard of Port Maurice Isidore of Seville Saint Blaise Benedict of Nursia Jean Soleil Bartholomew the Apostle
Leonard of Port Maurice, Isidore of Seville, Saint Blaise, Benedict of Nursia, Jean Soleil and Bartholomew the Apostle are the names of the patron saint of farmer or are a successors of Marie-Louise Caillé
Leonard of Port Maurice Isidore of Seville Saint Blaise Benedict of Nursia Jean Soleil Bartholomew the Apostle
action filter_type
action union
action find
entity farmer
relation patron saint
action find
entity Marie-Louise Caillé
relation child
type common name
{'OR': [['farmer', 'patron saint', {'concept': 'common name'}], ['Marie-Louise Caillé', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:farmer property:patron_saint ?c } UNION { resource:Marie-Louise_Caillé property:child ?c } } . ?c rdf:type ontology:common_name }
[]