Simple Question (Direct)
Simple Question
Q3051431
P106
Q12737077
USER
What is the job of Ellen Scripps ?
(Q3051431,P106,c(Q12737077))
action filter_type
action find
entity Q3051431
relation P106
type Q12737077
['Q3051431', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3051431 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Ellen Scripps
action filter_type
action find
entity Ellen Scripps
relation occupation
type occupation
['Ellen Scripps', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Ellen_Scripps property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q43845
SYSTEM
businessperson
Q43845
(Q3051431,P106,c(Q12737077))
action filter_type
action find
entity Q3051431
relation P106
type Q12737077
The job of Ellen Scripps is a [ANSWER]
['Q3051431', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3051431 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
businessperson
The job of Ellen Scripps is a businessperson
businessperson
action filter_type
action find
entity Ellen Scripps
relation occupation
type occupation
['Ellen Scripps', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Ellen_Scripps property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P921
Q12737077 Q386724 Q838948
USER
How many occupations were the main subjects of around the same number of works and works of art 's work as that occupation ?
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q43845
relation P921
type Q386724
type Q838948
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?k WHERE { { ?u property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q386724 } UNION { ?k rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q838948 . ?u property:P921 ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y property:P921 resource:Q43845 . { ?y rdf:type ?w . VALUES ( ?w ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } } } . FILTER ( ?v = ?c ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity businessperson
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?k WHERE { { ?u property:main_subject ?k . ?k rdf:type ontology:occupation . ?u rdf:type ontology:work } UNION { ?k rdf:type ontology:occupation . ?u rdf:type ontology:work_of_art . ?u property:main_subject ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y property:main_subject resource:businessperson . { ?y rdf:type ?w . VALUES ( ?w ) { ( ontology:work_of_art ) ( ontology:work ) } } } } . FILTER ( ?v = ?c ) }
[]
occupation work work of art
SYSTEM
96
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 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 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q43845
relation P921
type Q386724
type Q838948
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?k WHERE { { ?u property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q386724 } UNION { ?k rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q838948 . ?u property:P921 ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y property:P921 resource:Q43845 . { ?y rdf:type ?w . VALUES ( ?w ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } } } . FILTER ( ?v = ?c ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist 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 Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor 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 peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
96
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity businessperson
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?k WHERE { { ?u property:main_subject ?k . ?k rdf:type ontology:occupation . ?u rdf:type ontology:work } UNION { ?k rdf:type ontology:occupation . ?u rdf:type ontology:work_of_art . ?u property:main_subject ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y property:main_subject resource:businessperson . { ?y rdf:type ?w . VALUES ( ?w ) { ( ontology:work_of_art ) ( ontology:work ) } } } } . FILTER ( ?v = ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3051431 Q265460
P9
Q502895
USER
How many people had Ellen Scripps or Margaret of Bohemia, Queen of Hungary as their sibling ?
(c(Q502895),P9,Q3051431) (c(Q502895),P9,Q265460)
action count
action union
action filter_type
action find_reverse
entity Q3051431
relation P9
type Q502895
action filter_type
action find_reverse
entity Q265460
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q3051431'] [{'concept': 'Q502895'}, 'P9', 'Q265460']
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P9 ?v . VALUES ( ?v ) { ( resource:Q3051431 ) ( resource:Q265460 ) } }
Ellen Scripps Margaret of Bohemia, Queen of Hungary
action count
action union
action filter_type
action find_reverse
entity Ellen Scripps
relation sister
type common name
action filter_type
action find_reverse
entity Margaret of Bohemia, Queen of Hungary
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Ellen Scripps'] [{'concept': 'common name'}, 'sister', 'Margaret of Bohemia, Queen of Hungary']
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:sister ?v . VALUES ( ?v ) { ( resource:Ellen_Scripps ) ( resource:Margaret_of_Bohemia,_Queen_of_Hungary ) } }
[]
common name
SYSTEM
9
Q155473 Q567506 Q170202 Q57124 Q291086 Q152148 Q3568589 Q3568744 Q2057054
(c(Q502895),P9,Q3051431) (c(Q502895),P9,Q265460)
action count
action union
action filter_type
action find_reverse
entity Q3051431
relation P9
type Q502895
action filter_type
action find_reverse
entity Q265460
relation P9
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P9', 'Q3051431'] [{'concept': 'Q502895'}, 'P9', 'Q265460']
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P9 ?v . VALUES ( ?v ) { ( resource:Q3051431 ) ( resource:Q265460 ) } }
Catherine of Bohemia John of Görlitz Anne of Bohemia Sigismund Elisabeth of Bohemia Wenceslaus IV of Bohemia William Edmund Scripps William John Scripps Margaret of Bohemia, Burgravine of Nuremberg
9
action count
action union
action filter_type
action find_reverse
entity Ellen Scripps
relation sister
type common name
action filter_type
action find_reverse
entity Margaret of Bohemia, Queen of Hungary
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Ellen Scripps'] [{'concept': 'common name'}, 'sister', 'Margaret of Bohemia, Queen of Hungary']
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:sister ?v . VALUES ( ?v ) { ( resource:Ellen_Scripps ) ( resource:Margaret_of_Bohemia,_Queen_of_Hungary ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q265460
P9 P21
Q502895
USER
Which people had Margaret of Bohemia, Queen of Hungary as their sibling and are a male ?
AND((c(Q502895),P9,Q265460), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q265460
relation P9
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q265460'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P21 resource:Q6581097 . ?r property:P9 resource:Q265460 . ?r rdf:type ontology:Q502895 }
male Margaret of Bohemia, Queen of Hungary
action filter_type
action intersection
action find_reverse
entity Margaret of Bohemia, Queen of Hungary
relation sister
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'Margaret of Bohemia, Queen of Hungary'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:gender resource:male . ?r property:sister resource:Margaret_of_Bohemia,_Queen_of_Hungary . ?r rdf:type ontology:common_name }
[]
common name
Q57124 Q152148 Q567506
SYSTEM
Sigismund, Wenceslaus IV of Bohemia, John of Görlitz
Q57124 Q152148 Q567506
AND((c(Q502895),P9,Q265460), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q265460
relation P9
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] had Margaret of Bohemia, Queen of Hungary as their sibling and are a male
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q265460'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P21 resource:Q6581097 . ?r property:P9 resource:Q265460 . ?r rdf:type ontology:Q502895 }
Sigismund Wenceslaus IV of Bohemia John of Görlitz
Sigismund, Wenceslaus IV of Bohemia and John of Görlitz had Margaret of Bohemia, Queen of Hungary as their sibling and are a male
Sigismund Wenceslaus IV of Bohemia John of Görlitz
action filter_type
action intersection
action find_reverse
entity Margaret of Bohemia, Queen of Hungary
relation sister
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'Margaret of Bohemia, Queen of Hungary'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:gender resource:male . ?r property:sister resource:Margaret_of_Bohemia,_Queen_of_Hungary . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q57124 Q152148 Q567506
P26
Q502895
USER
Which people are the life partner of Sigismund, Wenceslaus IV of Bohemia and John of Görlitz ?
(c(Q502895),P26,Q57124) (c(Q502895),P26,Q152148) (c(Q502895),P26,Q567506)
action union
action filter_type
action find
entity Q57124
relation P26
type Q502895
action filter_type
action find
entity Q152148
relation P26
type Q502895
action filter_type
action find
entity Q567506
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q57124'] [{'concept': 'Q502895'}, 'P26', 'Q152148'] [{'concept': 'Q502895'}, 'P26', 'Q567506']
SELECT DISTINCT ?b WHERE { { ?b rdf:type ontology:Q502895 . resource:Q57124 property:P26 ?b } UNION { resource:Q152148 property:P26 ?b . ?b rdf:type ontology:Q502895 } }
Sigismund Wenceslaus IV of Bohemia John of Görlitz
action union
action filter_type
action find
entity Sigismund
relation spouse
type common name
action filter_type
action find
entity Wenceslaus IV of Bohemia
relation spouse
type common name
action filter_type
action find
entity John of Görlitz
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Sigismund'] [{'concept': 'common name'}, 'spouse', 'Wenceslaus IV of Bohemia'] [{'concept': 'common name'}, 'spouse', 'John of Görlitz']
SELECT DISTINCT ?b WHERE { { ?b rdf:type ontology:common_name . resource:Sigismund property:spouse ?b } UNION { resource:Wenceslaus_IV_of_Bohemia property:spouse ?b . ?b rdf:type ontology:common_name } }
[]
common name
Q231334 Q455201 Q154412
SYSTEM
Barbara of Cilli, Sophia of Bavaria, Mary, Queen of Hungary
Q231334 Q154412 Q455201 Q448853 Q4960775
(c(Q502895),P26,Q57124) (c(Q502895),P26,Q152148) (c(Q502895),P26,Q567506)
action union
action filter_type
action find
entity Q57124
relation P26
type Q502895
action filter_type
action find
entity Q152148
relation P26
type Q502895
action filter_type
action find
entity Q567506
relation P26
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P26', 'Q57124'] [{'concept': 'Q502895'}, 'P26', 'Q152148'] [{'concept': 'Q502895'}, 'P26', 'Q567506']
SELECT DISTINCT ?b WHERE { { ?b rdf:type ontology:Q502895 . resource:Q57124 property:P26 ?b } UNION { resource:Q152148 property:P26 ?b . ?b rdf:type ontology:Q502895 } }
Barbara of Cilli Mary, Queen of Hungary Sophia of Bavaria Joanna of Bavaria Richardis Catherine of Mecklenburg
Barbara of Cilli, Sophia of Bavaria and Mary, Queen of Hungary are the life partner of Sigismund, Wenceslaus IV of Bohemia and John of Görlitz
Barbara of Cilli Sophia of Bavaria Mary, Queen of Hungary
action union
action filter_type
action find
entity Sigismund
relation spouse
type common name
action filter_type
action find
entity Wenceslaus IV of Bohemia
relation spouse
type common name
action filter_type
action find
entity John of Görlitz
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Sigismund'] [{'concept': 'common name'}, 'spouse', 'Wenceslaus IV of Bohemia'] [{'concept': 'common name'}, 'spouse', 'John of Görlitz']
SELECT DISTINCT ?b WHERE { { ?b rdf:type ontology:common_name . resource:Sigismund property:spouse ?b } UNION { resource:Wenceslaus_IV_of_Bohemia property:spouse ?b . ?b rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q231334 Q455201 Q154412
P9
Q502895
USER
Which people had Barbara of Cilli, Sophia of Bavaria and Mary, Queen of Hungary as sister ?
(c(Q502895),P9,Q231334) (c(Q502895),P9,Q455201) (c(Q502895),P9,Q154412)
action union
action filter_type
action find_reverse
entity Q231334
relation P9
type Q502895
action filter_type
action find_reverse
entity Q154412
relation P9
type Q502895
action filter_type
action find_reverse
entity Q455201
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q231334'] [{'concept': 'Q502895'}, 'P9', 'Q455201'] [{'concept': 'Q502895'}, 'P9', 'Q154412']
SELECT DISTINCT ?j WHERE { { ?j property:P9 resource:Q231334 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P9 resource:Q154412 . ?j rdf:type ontology:Q502895 } }
Barbara of Cilli Sophia of Bavaria Mary, Queen of Hungary
action union
action filter_type
action find_reverse
entity Barbara of Cilli
relation sister
type common name
action filter_type
action find_reverse
entity Mary, Queen of Hungary
relation sister
type common name
action filter_type
action find_reverse
entity Sophia of Bavaria
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Barbara of Cilli'] [{'concept': 'common name'}, 'sister', 'Sophia of Bavaria'] [{'concept': 'common name'}, 'sister', 'Mary, Queen of Hungary']
SELECT DISTINCT ?j WHERE { { ?j property:sister resource:Barbara_of_Cilli . ?j rdf:type ontology:common_name } UNION { ?j property:sister resource:Mary,_Queen_of_Hungary . ?j rdf:type ontology:common_name } }
[]
common name
Q53449 Q63163 Q63156
SYSTEM
Jadwiga of Poland, Ernest, Duke of Bavaria, William III, Duke of Bavaria
Q867367 Q372579 Q63163 Q63156 Q105639 Q753680 Q53449
(c(Q502895),P9,Q231334) (c(Q502895),P9,Q455201) (c(Q502895),P9,Q154412)
action union
action filter_type
action find_reverse
entity Q231334
relation P9
type Q502895
action filter_type
action find_reverse
entity Q154412
relation P9
type Q502895
action filter_type
action find_reverse
entity Q455201
relation P9
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P9', 'Q231334'] [{'concept': 'Q502895'}, 'P9', 'Q455201'] [{'concept': 'Q502895'}, 'P9', 'Q154412']
SELECT DISTINCT ?j WHERE { { ?j property:P9 resource:Q231334 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P9 resource:Q154412 . ?j rdf:type ontology:Q502895 } }
Anna of Cilli, Countess Palatine of Hungary Frederick II, Count of Celje Ernest, Duke of Bavaria William III, Duke of Bavaria Johannes III. Grünwalder Catherine of Hungary Jadwiga of Poland
Jadwiga of Poland, Ernest, Duke of Bavaria and William III, Duke of Bavaria had Barbara of Cilli, Sophia of Bavaria and Mary, Queen of Hungary as sister
Jadwiga of Poland Ernest, Duke of Bavaria William III, Duke of Bavaria
action union
action filter_type
action find_reverse
entity Barbara of Cilli
relation sister
type common name
action filter_type
action find_reverse
entity Mary, Queen of Hungary
relation sister
type common name
action filter_type
action find_reverse
entity Sophia of Bavaria
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Barbara of Cilli'] [{'concept': 'common name'}, 'sister', 'Sophia of Bavaria'] [{'concept': 'common name'}, 'sister', 'Mary, Queen of Hungary']
SELECT DISTINCT ?j WHERE { { ?j property:sister resource:Barbara_of_Cilli . ?j rdf:type ontology:common_name } UNION { ?j property:sister resource:Mary,_Queen_of_Hungary . ?j rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q53449 Q63163 Q63156
P40
Q502895
USER
Which people are a successors of Jadwiga of Poland, Ernest, Duke of Bavaria and William III, Duke of Bavaria ?
(Q53449,P40,c(Q502895)) (Q63163,P40,c(Q502895)) (Q63156,P40,c(Q502895))
action union
action filter_type
action find
entity Q53449
relation P40
type Q502895
action filter_type
action find
entity Q63163
relation P40
type Q502895
action filter_type
action find
entity Q63156
relation P40
type Q502895
['Q53449', 'P40', {'concept': 'Q502895'}] ['Q63163', 'P40', {'concept': 'Q502895'}] ['Q63156', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?c property:P40 ?e . VALUES ( ?c ) { ( resource:Q53449 ) ( resource:Q63163 ) } }
Jadwiga of Poland Ernest, Duke of Bavaria William III, Duke of Bavaria
action union
action filter_type
action find
entity Jadwiga of Poland
relation child
type common name
action filter_type
action find
entity Ernest, Duke of Bavaria
relation child
type common name
action filter_type
action find
entity William III, Duke of Bavaria
relation child
type common name
['Jadwiga of Poland', 'child', {'concept': 'common name'}] ['Ernest, Duke of Bavaria', 'child', {'concept': 'common name'}] ['William III, Duke of Bavaria', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?c property:child ?e . VALUES ( ?c ) { ( resource:Jadwiga_of_Poland ) ( resource:Ernest,_Duke_of_Bavaria ) } }
[]
common name
Q61796 Q604766 Q115405
SYSTEM
Albert III, Duke of Bavaria, Elizabeth Bonifacia of Poland, William of Bavaria-Munich
Q604766 Q61796 Q813293 Q115405 Q68592
(Q53449,P40,c(Q502895)) (Q63163,P40,c(Q502895)) (Q63156,P40,c(Q502895))
action union
action filter_type
action find
entity Q53449
relation P40
type Q502895
action filter_type
action find
entity Q63163
relation P40
type Q502895
action filter_type
action find
entity Q63156
relation P40
type Q502895
[ANSWERS] are a successors of Jadwiga of Poland, Ernest, Duke of Bavaria and William III, Duke of Bavaria
['Q53449', 'P40', {'concept': 'Q502895'}] ['Q63163', 'P40', {'concept': 'Q502895'}] ['Q63156', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?c property:P40 ?e . VALUES ( ?c ) { ( resource:Q53449 ) ( resource:Q63163 ) } }
Elizabeth Bonifacia of Poland Albert III, Duke of Bavaria Beatrix of Bavaria William of Bavaria-Munich Adolf, Duke of Bavaria
Albert III, Duke of Bavaria, Elizabeth Bonifacia of Poland and William of Bavaria-Munich are a successors of Jadwiga of Poland, Ernest, Duke of Bavaria and William III, Duke of Bavaria
Albert III, Duke of Bavaria Elizabeth Bonifacia of Poland William of Bavaria-Munich
action union
action filter_type
action find
entity Jadwiga of Poland
relation child
type common name
action filter_type
action find
entity Ernest, Duke of Bavaria
relation child
type common name
action filter_type
action find
entity William III, Duke of Bavaria
relation child
type common name
['Jadwiga of Poland', 'child', {'concept': 'common name'}] ['Ernest, Duke of Bavaria', 'child', {'concept': 'common name'}] ['William III, Duke of Bavaria', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?c property:child ?e . VALUES ( ?c ) { ( resource:Jadwiga_of_Poland ) ( resource:Ernest,_Duke_of_Bavaria ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q61796 Q604766 Q115405
P40
Q502895
USER
Who have those ones as an offspring ?
(c(Q502895),P40,Q61796) (c(Q502895),P40,Q604766) (c(Q502895),P40,Q115405)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q61796'] [{'concept': 'Q502895'}, 'P40', 'Q604766'] [{'concept': 'Q502895'}, 'P40', 'Q115405']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . VALUES ( ?h ) { ( resource:Q604766 ) ( resource:Q61796 ) ( resource:Q813293 ) } . ?s property:P40 ?h }
Albert III, Duke of Bavaria Elizabeth Bonifacia of Poland William of Bavaria-Munich
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Albert III, Duke of Bavaria'] [{'concept': 'common name'}, 'child', 'Elizabeth Bonifacia of Poland'] [{'concept': 'common name'}, 'child', 'William of Bavaria-Munich']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . VALUES ( ?h ) { ( resource:Elizabeth_Bonifacia_of_Poland ) ( resource:Albert_III,_Duke_of_Bavaria ) ( resource:Beatrix_of_Bavaria ) } . ?s property:child ?h }
[]
common name
Q54049 Q1941886 Q53449
SYSTEM
Jogaila, Elisabetta Visconti, Jadwiga of Poland
Q1941886 Q63163 Q54049 Q53449 Q63156 Q78401
(c(Q502895),P40,Q61796) (c(Q502895),P40,Q604766) (c(Q502895),P40,Q115405)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[ANSWERS] have those ones as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q61796'] [{'concept': 'Q502895'}, 'P40', 'Q604766'] [{'concept': 'Q502895'}, 'P40', 'Q115405']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . VALUES ( ?h ) { ( resource:Q604766 ) ( resource:Q61796 ) ( resource:Q813293 ) } . ?s property:P40 ?h }
Elisabetta Visconti Ernest, Duke of Bavaria Jogaila Jadwiga of Poland William III, Duke of Bavaria Margaret of Cleves, Duchess of Bavaria-Munich
Jogaila, Elisabetta Visconti and Jadwiga of Poland have those ones as an offspring
Jogaila Elisabetta Visconti Jadwiga of Poland
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Albert III, Duke of Bavaria'] [{'concept': 'common name'}, 'child', 'Elizabeth Bonifacia of Poland'] [{'concept': 'common name'}, 'child', 'William of Bavaria-Munich']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . VALUES ( ?h ) { ( resource:Elizabeth_Bonifacia_of_Poland ) ( resource:Albert_III,_Duke_of_Bavaria ) ( resource:Beatrix_of_Bavaria ) } . ?s property:child ?h }
[]
Clarification
Simple Question|Single Entity|Indirect
Q54049
P127
Q56061
USER
Which administrative territory is owned by that person ?
(c(Q56061),P127,Q54049)
action filter_type
action find_reverse
entity Q54049
relation P127
type Q56061
[{'concept': 'Q56061'}, 'P127', 'Q54049']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . ?u property:P127 resource:Q54049 }
Jogaila
action filter_type
action find_reverse
entity Jogaila
relation owned by
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'owned by', 'Jogaila']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . ?u property:owned_by resource:Jogaila }
[]
administrative territorial entity
Clarification for simple ques.
Q1941886
SYSTEM
Did you mean Elisabetta Visconti ?
Q54049 Q1941886 Q53449
(c(Q56061),P127,Q54049) (c(Q56061),P127,Q1941886) (c(Q56061),P127,Q53449)
[ANSWER]
[{'concept': 'Q56061'}, 'P127', 'Q54049'] [{'concept': 'Q56061'}, 'P127', 'Q1941886'] [{'concept': 'Q56061'}, 'P127', 'Q53449']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . ?u property:P127 resource:Q54049 }
Jogaila Elisabetta Visconti Jadwiga of Poland
Did you mean Elisabetta Visconti ?
Elisabetta Visconti
[{'concept': 'administrative territorial entity'}, 'owned by', 'Jogaila'] [{'concept': 'administrative territorial entity'}, 'owned by', 'Elisabetta Visconti'] [{'concept': 'administrative territorial entity'}, 'owned by', 'Jadwiga of Poland']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . ?u property:owned_by resource:Jogaila }
[]
Simple Question (Coreferenced)
USER
No, I meant Jogaila. Could you tell me the answer for that?
(c(Q56061),P127,Q54049)
Q54049
[{'concept': 'Q56061'}, 'P127', 'Q54049']
[{'concept': 'administrative territorial entity'}, 'owned by', 'Jogaila']
[]
Q2621007
SYSTEM
Kreva
Q2621007
(c(Q56061),P127,Q54049)
action filter_type
action find_reverse
entity Q54049
relation P127
type Q56061
Is [ANSWER] is owned by that person
[{'concept': 'Q56061'}, 'P127', 'Q54049']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . ?u property:P127 resource:Q54049 }
Kreva
Is Kreva is owned by that person
Kreva
action filter_type
action find_reverse
entity Jogaila
relation owned by
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'owned by', 'Jogaila']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . ?u property:owned_by resource:Jogaila }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q57124
P21 P7
Q502895
USER
Which people have Sigismund as their sibling and are a female ?
AND((c(Q502895),P7,Q57124), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q57124
relation P7
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q57124'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?h WHERE { ?h property:P7 resource:Q57124 . ?h property:P21 resource:Q6581072 . ?h rdf:type ontology:Q502895 }
female Sigismund
action filter_type
action intersection
action find_reverse
entity Sigismund
relation brother
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Sigismund'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?h WHERE { ?h property:brother resource:Sigismund . ?h property:gender resource:female . ?h rdf:type ontology:common_name }
[]
common name
Q155473 Q291086 Q2057054 Q170202 Q265460
SYSTEM
Catherine of Bohemia, Elisabeth of Bohemia, Margaret of Bohemia, Burgravine of Nuremberg, Anne of Bohemia, Margaret of Bohemia, Queen of Hungary
Q155473 Q291086 Q2057054 Q170202 Q265460
AND((c(Q502895),P7,Q57124), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q57124
relation P7
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q57124'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?h WHERE { ?h property:P7 resource:Q57124 . ?h property:P21 resource:Q6581072 . ?h rdf:type ontology:Q502895 }
Catherine of Bohemia Elisabeth of Bohemia Margaret of Bohemia, Burgravine of Nuremberg Anne of Bohemia Margaret of Bohemia, Queen of Hungary
Catherine of Bohemia, Elisabeth of Bohemia, Margaret of Bohemia, Burgravine of Nuremberg, Anne of Bohemia and Margaret of Bohemia, Queen of Hungary have Sigismund as their sibling and are a female
Catherine of Bohemia Elisabeth of Bohemia Margaret of Bohemia, Burgravine of Nuremberg Anne of Bohemia Margaret of Bohemia, Queen of Hungary
action filter_type
action intersection
action find_reverse
entity Sigismund
relation brother
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Sigismund'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?h WHERE { ?h property:brother resource:Sigismund . ?h property:gender resource:female . ?h rdf:type ontology:common_name }
[]