Simple Question (Direct)
Simple Question
Q7301
P734
Q101352
USER
Who has the surname Prince of Hongnong ?
(Q7301,P734,c(Q101352))
action filter_type
action find
entity Q7301
relation P734
type Q101352
['Q7301', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?i WHERE { resource:Q7301 property:P734 ?i . ?i rdf:type ontology:Q101352 }
Prince of Hongnong
action filter_type
action find
entity Prince of Hongnong
relation family name
type family name
['Prince of Hongnong', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?i WHERE { resource:Prince_of_Hongnong property:family_name ?i . ?i rdf:type ontology:family_name }
[]
family name
Q804970
SYSTEM
Liu
Q804970
(Q7301,P734,c(Q101352))
action filter_type
action find
entity Q7301
relation P734
type Q101352
[ANSWER] has the surname Prince of Hongnong
['Q7301', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?i WHERE { resource:Q7301 property:P734 ?i . ?i rdf:type ontology:Q101352 }
Liu
Liu has the surname Prince of Hongnong
Liu
action filter_type
action find
entity Prince of Hongnong
relation family name
type family name
['Prince of Hongnong', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?i WHERE { resource:Prince_of_Hongnong property:family_name ?i . ?i rdf:type ontology:family_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q7301
P7
Q502895
USER
How many people have Prince of Hongnong as their sibling ?
(Q7301,P7,c(Q502895))
action count
action filter_type
action find
entity Q7301
relation P7
type Q502895
['Q7301', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Q7301 property:P7 ?m . ?m rdf:type ontology:Q502895 }
Prince of Hongnong
action count
action filter_type
action find
entity Prince of Hongnong
relation brother
type common name
['Prince of Hongnong', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Prince_of_Hongnong property:brother ?m . ?m rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q7316
(Q7301,P7,c(Q502895))
action count
action filter_type
action find
entity Q7301
relation P7
type Q502895
[ANSWER]
['Q7301', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Q7301 property:P7 ?m . ?m rdf:type ontology:Q502895 }
Emperor Xian of Han
1
action count
action filter_type
action find
entity Prince of Hongnong
relation brother
type common name
['Prince of Hongnong', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Prince_of_Hongnong property:brother ?m . ?m rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q532915
Q502895
USER
And what about Noel Harrison?
(Q532915,P7,c(Q502895))
action count
action filter_type
action find
entity Q532915
relation P7
type Q502895
['Q532915', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q532915 property:P7 ?s . ?s rdf:type ontology:Q502895 }
Noel Harrison
action count
action filter_type
action find
entity Noel Harrison
relation brother
type common name
['Noel Harrison', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Noel_Harrison property:brother ?s . ?s rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q532915,P7,c(Q502895))
action count
action filter_type
action find
entity Q532915
relation P7
type Q502895
[ANSWER]
['Q532915', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q532915 property:P7 ?s . ?s rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Noel Harrison
relation brother
type common name
['Noel Harrison', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Noel_Harrison property:brother ?s . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15416
USER
How many television programs have been dubbed by approximately 17 people ?
(c(Q15416),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 17
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?m ) WHERE { ?q property:P725 ?c . ?q rdf:type ontology:Q15416 . ?c rdf:type ontology:Q502895 } GROUP BY ?q } . FILTER ( ?m = 17 ) }
action count
action approx
action find_tuple_counts
relation voice actor
type television program
type common name
value 17
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?m ) WHERE { ?q property:voice_actor ?c . ?q rdf:type ontology:television_program . ?c rdf:type ontology:common_name } GROUP BY ?q } . FILTER ( ?m = 17 ) }
[]
common name television program
SYSTEM
2
Q18571935 Q18553975
(c(Q15416),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 17
[ANSWER]
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?m ) WHERE { ?q property:P725 ?c . ?q rdf:type ontology:Q15416 . ?c rdf:type ontology:Q502895 } GROUP BY ?q } . FILTER ( ?m = 17 ) }
The Big O Soul Eater
2
action count
action approx
action find_tuple_counts
relation voice actor
type television program
type common name
value 17
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?m ) WHERE { ?q property:voice_actor ?c . ?q rdf:type ontology:television_program . ?c rdf:type ontology:common_name } GROUP BY ?q } . FILTER ( ?m = 17 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7301
P1196
Q1914636
USER
Which activity best describes with type of death of Prince of Hongnong ?
(Q7301,P1196,c(Q1914636))
action filter_type
action find
entity Q7301
relation P1196
type Q1914636
['Q7301', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?m WHERE { resource:Q7301 property:P1196 ?m . ?m rdf:type ontology:Q1914636 }
Prince of Hongnong
action filter_type
action find
entity Prince of Hongnong
relation manner of death
type activity
['Prince of Hongnong', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?m WHERE { resource:Prince_of_Hongnong property:manner_of_death ?m . ?m rdf:type ontology:activity }
[]
activity
Q10737
SYSTEM
suicide
Q10737
(Q7301,P1196,c(Q1914636))
action filter_type
action find
entity Q7301
relation P1196
type Q1914636
[ANSWER] best describes with type of death of Prince of Hongnong
['Q7301', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?m WHERE { resource:Q7301 property:P1196 ?m . ?m rdf:type ontology:Q1914636 }
suicide
Suicide best describes with type of death of Prince of Hongnong
suicide
action filter_type
action find
entity Prince of Hongnong
relation manner of death
type activity
['Prince of Hongnong', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?m WHERE { resource:Prince_of_Hongnong property:manner_of_death ?m . ?m rdf:type ontology:activity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q708679
Q1914636
USER
And how about Sanmao?
(Q708679,P1196,c(Q1914636))
action filter_type
action find
entity Q708679
relation P1196
type Q1914636
['Q708679', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?x WHERE { resource:Q708679 property:P1196 ?x . ?x rdf:type ontology:Q1914636 }
Sanmao
action filter_type
action find
entity Sanmao
relation manner of death
type activity
['Sanmao', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?x WHERE { resource:Sanmao property:manner_of_death ?x . ?x rdf:type ontology:activity }
[]
activity
Q10737
SYSTEM
suicide
Q10737
(Q708679,P1196,c(Q1914636))
action filter_type
action find
entity Q708679
relation P1196
type Q1914636
[ANSWER]
['Q708679', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?x WHERE { resource:Q708679 property:P1196 ?x . ?x rdf:type ontology:Q1914636 }
suicide
suicide
action filter_type
action find
entity Sanmao
relation manner of death
type activity
['Sanmao', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?x WHERE { resource:Sanmao property:manner_of_death ?x . ?x rdf:type ontology:activity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q306228
P361
Q1656682 Q151885 Q1914636
USER
How many activities are a portion of around the same number of events and concepts as Abbergen ?
(c(Q1914636),P361,c(Q1656682)|c(Q151885))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q1914636
type Q1656682
action find_tuple_counts
relation P361
type Q1914636
type Q151885
action count
action filter_multi_types
action find
entity Q306228
relation P361
type Q1656682
type Q151885
[{'concept': 'Q1914636'}, 'P361', [{'concept': 'Q1656682'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?a ) WHERE { { ?q property:P361 ?g . ?q rdf:type ontology:Q1914636 . ?g rdf:type ontology:Q1656682 } UNION { ?q property:P361 ?g . ?q rdf:type ontology:Q1914636 . ?g rdf:type ontology:Q151885 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Q306228 property:P361 ?s . { { ?s rdf:type ontology:Q1656682 } UNION { ?s rdf:type ontology:Q151885 } } } } . FILTER ( ?a = ?k ) }
Abbergen
action count
action approx
action union
action find_tuple_counts
relation part of
type activity
type event
action find_tuple_counts
relation part of
type activity
type concept
action count
action filter_multi_types
action find
entity Abbergen
relation part of
type event
type concept
[{'concept': 'activity'}, 'part of', [{'concept': 'event'}, {'concept': 'concept'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?a ) WHERE { { ?q property:part_of ?g . ?q rdf:type ontology:activity . ?g rdf:type ontology:event } UNION { ?q property:part_of ?g . ?q rdf:type ontology:activity . ?g rdf:type ontology:concept } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Abbergen property:part_of ?s . { { ?s rdf:type ontology:event } UNION { ?s rdf:type ontology:concept } } } } . FILTER ( ?a = ?k ) }
[]
event concept activity
SYSTEM
112
Q1069 Q5972092 Q17014350 Q4652509 Q11625220 Q14623204 Q7202 Q7205 Q3519248 Q3189909 Q471906 Q5322511 Q1642790 Q159964 Q5172476 Q2301555 Q8427 Q10979515 Q190149 Q3720660 Q19969854 Q1546627 Q1786253 Q297251 Q1246516 Q214932 Q26997005 Q29198 Q600236 Q3009579 Q517003 Q83371 Q204938 Q1330176 Q11410 Q7784619 Q244955 Q472238 Q1153786 Q189250 Q1273108 Q1924397 Q897511 Q1023769 Q16861871 Q306103 Q1787378 Q7041997 Q1185297 Q338754 Q25931035 Q1110896 Q11448899 Q10494362 Q2914732 Q13507753 Q26132809 Q210005 Q2313702 Q991265 Q514 Q4621731 Q1719546 Q4116434 Q13605743 Q331803 Q288166 Q242864 Q2021311 Q20706262 Q244939 Q4763557 Q1298668 Q9166713 Q641169 Q1052820 Q392409 Q43114 Q190993 Q862072 Q306228 Q500096 Q11467 Q80993 Q18156118 Q306096 Q2465832 Q23038331 Q8789 Q5775114 Q3500162 Q1860969 Q1319035 Q22905659 Q645920 Q219067 Q3438698 Q298455 Q19723898 Q7141 Q332736 Q953652 Q131683 Q14215960 Q215501 Q4307822 Q31728 Q321984 Q331835 Q11774442 Q1203526 Q15871713
(c(Q1914636),P361,c(Q1656682)|c(Q151885))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q1914636
type Q1656682
action find_tuple_counts
relation P361
type Q1914636
type Q151885
action count
action filter_multi_types
action find
entity Q306228
relation P361
type Q1656682
type Q151885
[ANSWER]
[{'concept': 'Q1914636'}, 'P361', [{'concept': 'Q1656682'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?a ) WHERE { { ?q property:P361 ?g . ?q rdf:type ontology:Q1914636 . ?g rdf:type ontology:Q1656682 } UNION { ?q property:P361 ?g . ?q rdf:type ontology:Q1914636 . ?g rdf:type ontology:Q151885 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Q306228 property:P361 ?s . { { ?s rdf:type ontology:Q1656682 } UNION { ?s rdf:type ontology:Q151885 } } } } . FILTER ( ?a = ?k ) }
geology IMRC transgender activism AM1* resuscitation secondary education molecular biology paleontology teuthology Jum quantum cryptography EAOP circuit technology typography Corporate media open-loop controller turkology general economics photogrammetry 2012–2013 Egyptian protests Project Aristo Strategy (game theory) power plant technology Ölpolitur Feminist art flight simulator Renaissance art 2011 Egyptian revolution operation Cytology Soviet manned lunar programs seismology Zinkätzung judicial activism game Thinktank, Birmingham Science Museum Zwischengesang 2010–2012 Algerian protests DIN 488 Zeltmission E-Commerce measurement technology cryptanalysis CIVITAS job training mining method parts cleaning Nixon White House tapes Dementi control Bernie or Bust Colonial Service Academic Frontier Promotion Project Faunistics military deception Via Catalana Twinkl Create 2011 Yemeni revolution Sprengtechnik keratometry anatomy 2011 London anti-cuts protest recreational diving Medical privacy 2013 Egyptian coup d'état sales assistant Riksgropen Bahraini uprising Dutch Senior Civil Service Breakthrough Listen 228 Incident Anglican ministry research project tertiary education Voice projection Suijutsu free-diving aikido malacology conchology Abbergen psychophysics metallurgy software engineering Hong Kong Civil Service Dismantling production branch of science 2016 Chicago protest cryptography history of Australia Bijeljina massacre Mars to Stay adult education Prostitution in ancient Greece Protestation at Speyer physical exercise Sijekovac killings Österleden Europeana Food and Drink cell biology Absolve domine Hello! Project embryology freighter travel pedology Muraqqa public administration Abkreuzung suction Prostitution in ancient Rome pilot experiment 2014 pro-Russian unrest in Ukraine
112
action count
action approx
action union
action find_tuple_counts
relation part of
type activity
type event
action find_tuple_counts
relation part of
type activity
type concept
action count
action filter_multi_types
action find
entity Abbergen
relation part of
type event
type concept
[{'concept': 'activity'}, 'part of', [{'concept': 'event'}, {'concept': 'concept'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?a ) WHERE { { ?q property:part_of ?g . ?q rdf:type ontology:activity . ?g rdf:type ontology:event } UNION { ?q property:part_of ?g . ?q rdf:type ontology:activity . ?g rdf:type ontology:concept } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { resource:Abbergen property:part_of ?s . { { ?s rdf:type ontology:event } UNION { ?s rdf:type ontology:concept } } } } . FILTER ( ?a = ?k ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q95399 Q7301
P53
Q13417114
USER
Which noble families do Prince of Hongnong or Bernhard II, Prince of Anhalt-Bernburg belong to ?
OR((Q7301,P53,c(Q13417114)), (Q95399,P53,c(Q13417114)))
action filter_type
action union
action find
entity Q7301
relation P53
action find
entity Q95399
relation P53
type Q13417114
{'OR': [['Q7301', 'P53', {'concept': 'Q13417114'}], ['Q95399', 'P53', {'concept': 'Q13417114'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q13417114 . { { resource:Q7301 property:P53 ?s } UNION { resource:Q95399 property:P53 ?s } } }
Bernhard II, Prince of Anhalt-Bernburg Prince of Hongnong
action filter_type
action union
action find
entity Prince of Hongnong
relation noble family
action find
entity Bernhard II, Prince of Anhalt-Bernburg
relation noble family
type noble family
{'OR': [['Prince of Hongnong', 'noble family', {'concept': 'noble family'}], ['Bernhard II, Prince of Anhalt-Bernburg', 'noble family', {'concept': 'noble family'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:noble_family . { { resource:Prince_of_Hongnong property:noble_family ?s } UNION { resource:Bernhard_II,_Prince_of_Anhalt-Bernburg property:noble_family ?s } } }
[]
noble family
Q168352 Q7209
SYSTEM
House of Ascania, Han dynasty
Q168352 Q7209
OR((Q7301,P53,c(Q13417114)), (Q95399,P53,c(Q13417114)))
action filter_type
action union
action find
entity Q7301
relation P53
action find
entity Q95399
relation P53
type Q13417114
[ANSWERS] Prince of Hongnong or Bernhard II, Prince of Anhalt-Bernburg belong to
{'OR': [['Q7301', 'P53', {'concept': 'Q13417114'}], ['Q95399', 'P53', {'concept': 'Q13417114'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q13417114 . { { resource:Q7301 property:P53 ?s } UNION { resource:Q95399 property:P53 ?s } } }
House of Ascania Han dynasty
House of Ascania and Han dynasty Prince of Hongnong or Bernhard II, Prince of Anhalt-Bernburg belong to
House of Ascania Han dynasty
action filter_type
action union
action find
entity Prince of Hongnong
relation noble family
action find
entity Bernhard II, Prince of Anhalt-Bernburg
relation noble family
type noble family
{'OR': [['Prince of Hongnong', 'noble family', {'concept': 'noble family'}], ['Bernhard II, Prince of Anhalt-Bernburg', 'noble family', {'concept': 'noble family'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:noble_family . { { resource:Prince_of_Hongnong property:noble_family ?s } UNION { resource:Bernhard_II,_Prince_of_Anhalt-Bernburg property:noble_family ?s } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q95399
P22
Q502895
USER
Which person has Bernhard II, Prince of Anhalt-Bernburg as a parent ?
(c(Q502895),P22,Q95399)
action filter_type
action find_reverse
entity Q95399
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q95399']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P22 resource:Q95399 }
Bernhard II, Prince of Anhalt-Bernburg
action filter_type
action find_reverse
entity Bernhard II, Prince of Anhalt-Bernburg
relation father
type common name
[{'concept': 'common name'}, 'father', 'Bernhard II, Prince of Anhalt-Bernburg']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:father resource:Bernhard_II,_Prince_of_Anhalt-Bernburg }
[]
common name
Q2402337
SYSTEM
Bernhard III, Prince of Anhalt-Bernburg
Q2402337
(c(Q502895),P22,Q95399)
action filter_type
action find_reverse
entity Q95399
relation P22
type Q502895
[ANSWER] has Bernhard II, Prince of Anhalt-Bernburg as a parent
[{'concept': 'Q502895'}, 'P22', 'Q95399']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P22 resource:Q95399 }
Bernhard III, Prince of Anhalt-Bernburg
Bernhard III, Prince of Anhalt-Bernburg has Bernhard II, Prince of Anhalt-Bernburg as a parent
Bernhard III, Prince of Anhalt-Bernburg
action filter_type
action find_reverse
entity Bernhard II, Prince of Anhalt-Bernburg
relation father
type common name
[{'concept': 'common name'}, 'father', 'Bernhard II, Prince of Anhalt-Bernburg']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:father resource:Bernhard_II,_Prince_of_Anhalt-Bernburg }
[]